Function at 0x429ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be4d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp + 0xf]
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
mov byte [esi + 0xc84], 0
mov byte [ebp - 0x1c], al
call fcn.0041dfe0
mov dword [ebp - 0x18], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], eax
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0xc98]
mov edi, dword [eax]
cmp edi, eax
mov byte [ebp - 4], 1
je 0x429fc2
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x48]
test eax, eax
mov dword [ebp - 0x20], ecx
jne 0x429f59
mov al, byte [ecx + 0x4f]
test al, al
je 0x429f71
call fcn.00410160
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00424ee0
mov al, byte [edi + 0x11]
test al, al
jne 0x429fba
mov eax, dword [edi + 8]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x429f9d
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x429fba
lea ecx, [ecx]
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x429f90
jmp 0x429fba
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x429fb8
cmp edi, dword [eax + 8]
jne 0x429fb8
mov edi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x429fa7
mov edi, eax
cmp edi, dword [esi + 0xc98]
jne 0x429f45
mov ecx, esi
call fcn.00428410
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
mov dword [esi + 0xc88], edi
mov ecx, dword [eax + 0x5c]
mov dword [esi + 0x40], ecx
mov edx, dword [eax + 0x60]
mov al, byte [ebp + 0xc]
mov byte [esi + 0xc8c], al
mov eax, dword [0x4f446c]
test eax, eax
mov dword [esi + 0x44], edx
push 0
je 0x42a0c9
push 0x4c4e78
lea edi, [esi + 0x30]
push edi
push 0
call eax
push str.DirectDrawCreateEx
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a06f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00422330
mov edx, dword [ebp - 0x18]
push edx
call fcn.004a773c
add esp, 4
xor eax, eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
lea ebx, [esi + 0x2c]
push ebx
push 0x4c4e88
push eax
call dword [ecx]
mov edi, eax
push str.QueryrInterface_IID_IDirectDraw
push edi
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a0c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.004281f0
jmp 0x42a0d7
lea ebx, [esi + 0x2c]
push ebx
push 0
call dword [0x4f4468]
mov edi, eax
push str.DirectDrawCreate
push edi
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a135
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00422330
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a773c
mov edx, dword [ebp - 0x10]
add esp, 4
xor eax, eax
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edi, [esi + 0x48]
push edi
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x42a14a
cmp dword [edi], 0x3c
jae 0x42a150
mov dword [edi], 0x3c
xor edx, edx
mov eax, 0x3e8
div dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x4c], eax
mov al, byte [ebp + 0xc]
test al, al
mov eax, dword [ebx]
mov edx, dword [eax]
je 0x42a2db
push 8
push ecx
push eax
call dword [edx + 0x50]
xor eax, eax
mov ecx, 0x1f
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov al, byte [esi + 0x10]
test al, al
mov dword [ebp - 0x9c], 0x7c
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x34], 0x200
je 0x42a1ad
mov dword [ebp - 0x34], 0x2200
push 0
lea eax, [esi + 0x34]
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, esi
mov dword [ebp - 0x88], 1
call fcn.0040e9d0
cmp eax, 0x88760091
jne 0x42a200
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.CreateSurface_Windowed_Primary
push eax
mov ecx, esi
call fcn.00422b30
test al, al
jne 0x42a5de
xor eax, eax
mov ecx, 0x1f
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov al, byte [esi + 0x10]
test al, al
mov dword [ebp - 0x9c], 0x7c
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x34], 0x840
je 0x42a24d
mov dword [ebp - 0x34], 0x6040
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
push 0
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x90], edx
push ecx
lea edx, [ebp - 0x9c]
push edx
mov ecx, esi
mov dword [ebp - 0x94], eax
call fcn.0040e9d0
push str.CreateSurface_Windowed_DrawSurface
push eax
mov ecx, esi
call fcn.00422b30
test al, al
jne 0x42a405
mov ebx, dword [ebx]
mov ecx, dword [ebx]
push 0
lea edx, [ebp + 0xc]
push edx
push 0
push ebx
call dword [ecx + 0x10]
push str.CreateClipper_Windowed
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a4f5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x11
push ecx
push eax
call dword [edx + 0x50]
push str.SetCooperativeLevel_FullScreen
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a321
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 0x44]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0x10
push edx
mov edx, dword [esi + 0x40]
push edx
push eax
call dword [ecx + 0x54]
push str.SetDisplayMode_FullScreen
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a372
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x1f
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov al, byte [esi + 0x10]
test al, al
mov dword [ebp - 0x9c], 0x7c
mov dword [ebp - 0x98], 0x21
mov dword [ebp - 0x34], 0x218
mov dword [ebp - 0x88], 1
je 0x42a3b4
mov dword [ebp - 0x34], 0x2218
push 0
lea edi, [esi + 0x34]
push edi
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
call fcn.0040e9d0
push str.CreateSurface_FullScreen_Primary
push eax
mov ecx, esi
call fcn.00422b30
test al, al
jne 0x42a588
mov eax, dword [edi]
lea edx, [esi + 0x38]
push edx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
push str.GetAttachedSurface
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a433
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x1f
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov al, byte [esi + 0x10]
test al, al
mov dword [ebp - 0x9c], 0x7c
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x34], 0x840
je 0x42a46b
mov dword [ebp - 0x34], 0x6040
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
push 0
mov dword [ebp - 0x90], ecx
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov dword [ebp - 0x94], edx
call fcn.0040e9d0
push str.CreateSurface_FullScreen_DrawSurface
push eax
mov ecx, esi
call fcn.00422b30
test al, al
jne 0x42a588
mov ebx, dword [ebx]
mov eax, dword [ebx]
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push ebx
call dword [eax + 0x10]
push str.CreateClipper_FullScreen
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a4f5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x42a515
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x70]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xca8]
xor eax, eax
mov ecx, 0x1f
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xcac]
push 0
lea edi, [esi + 0xcc0]
push edi
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov dword [ebp - 0x9c], 0x7c
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], eax
call fcn.0040e9d0
push str.CreateSurface_OldCursorArea
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a5b6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ebx, [esi + 0xcc4]
push ebx
lea eax, [ebp - 0x9c]
push eax
mov ecx, esi
call fcn.0040e9d0
push str.CreateSurface_NewCursorArea
push eax
mov ecx, esi
call fcn.00422b30
test al, al
je 0x42a60c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0xc0
call fcn.00497c10
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x42a62e
push esi
mov ecx, eax
call fcn.004279e0
jmp 0x42a630
xor eax, eax
mov ecx, dword [edi]
mov dword [esi + 0xcc8], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [edx + 0x88]
mov ecx, dword [esi + 0xcc8]
mov edx, dword [ecx]
push 0
push 0
call dword [edx + 0x54]
push 0xc0
call fcn.00497c10
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x42a678
push esi
mov ecx, eax
call fcn.004279e0
jmp 0x42a67a
xor eax, eax
mov ecx, dword [ebx]
mov dword [esi + 0xccc], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [edx + 0x88]
mov ecx, dword [esi + 0xccc]
mov edx, dword [ecx]
push 0
push 0
call dword [edx + 0x54]
mov edx, dword [esi + 0x34]
test edx, edx
je 0x42ac7a
xor eax, eax
mov ecx, 0x1b
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x108], 0x6c
mov dword [ebp - 0x104], 0x1006
mov eax, dword [edx]
push edx
call dword [eax + 0x58]
mov eax, dword [ebp - 0xb4]
cmp eax, 0x10
je 0x42a719
cmp eax, 0x20
je 0x42a719
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004281b0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xa8]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0xac]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov ecx, 0x20
lea esp, [esp]
mov edx, ebx
shr edx, cl
test dl, 1
je 0x42a74c
mov dword [esi + 0x6c], ecx
mov edx, eax
shr edx, cl
test dl, 1
je 0x42a758
mov dword [esi + 0x70], ecx
mov edx, edi
shr edx, cl
test dl, 1
je 0x42a764
mov dword [esi + 0x74], ecx
dec ecx
jns 0x42a740
mov ecx, dword [esi + 0x74]
mov edi, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov eax, 2
add ecx, eax
add edi, eax
mov dword [ebp + 0xc], ecx
add edx, eax
mov dword [ebp + 8], 8
jmp 0x42a790
mov ebx, dword [ebp - 0xb0]
lea ecx, [ecx]
lea ecx, [edx - 2]
cmp ecx, 0x20
jge 0x42a7a7
lea ecx, [edx - 2]
shr ebx, cl
test ebx, ebx
je 0x42a7a7
lea ecx, [eax - 1]
mov dword [esi + 0x60], ecx
lea ecx, [edi - 2]
cmp ecx, 0x20
jge 0x42a7c4
mov ebx, dword [ebp - 0xac]
lea ecx, [edi - 2]
shr ebx, cl
test ebx, ebx
je 0x42a7c4
lea ecx, [eax - 1]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx - 2]
cmp ebx, 0x20
jge 0x42a7e4
mov ebx, dword [ebp - 0xa8]
add ecx, 0xfffffffe
shr ebx, cl
test ebx, ebx
je 0x42a7e4
lea ecx, [eax - 1]
mov dword [esi + 0x68], ecx
lea ecx, [edx - 1]
cmp ecx, 0x20
jge 0x42a7fe
mov ebx, dword [ebp - 0xb0]
lea ecx, [edx - 1]
shr ebx, cl
test ebx, ebx
je 0x42a7fe
mov dword [esi + 0x60], eax
lea ecx, [edi - 1]
cmp ecx, 0x20
jge 0x42a818
mov ebx, dword [ebp - 0xac]
lea ecx, [edi - 1]
shr ebx, cl
test ebx, ebx
je 0x42a818
mov dword [esi + 0x64], eax
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx - 1]
cmp ebx, 0x20
jge 0x42a833
mov ebx, dword [ebp - 0xa8]
dec ecx
shr ebx, cl
test ebx, ebx
je 0x42a833
mov dword [esi + 0x68], eax
cmp edx, 0x20
jge 0x42a84c
mov ebx, dword [ebp - 0xb0]
mov ecx, edx
shr ebx, cl
test ebx, ebx
je 0x42a84c
lea ecx, [eax + 1]
mov dword [esi + 0x60], ecx
cmp edi, 0x20
jge 0x42a865
mov ebx, dword [ebp - 0xac]
mov ecx, edi
shr ebx, cl
test ebx, ebx
je 0x42a865
lea ecx, [eax + 1]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x20
jge 0x42a87f
mov ebx, dword [ebp - 0xa8]
shr ebx, cl
test ebx, ebx
je 0x42a87f
lea ecx, [eax + 1]
mov dword [esi + 0x68], ecx
lea ecx, [edx + 1]
cmp ecx, 0x20
jge 0x42a899
mov ebx, dword [ebp - 0xb0]
shr ebx, cl
test ebx, ebx
je 0x42a899
lea ecx, [eax + 2]
mov dword [esi + 0x60], ecx
lea ecx, [edi + 1]
cmp ecx, 0x20
jge 0x42a8b3
mov ebx, dword [ebp - 0xac]
shr ebx, cl
test ebx, ebx
je 0x42a8b3
lea ecx, [eax + 2]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, 0x20
jge 0x42a8ce
mov ebx, dword [ebp - 0xa8]
shr ebx, cl
test ebx, ebx
je 0x42a8ce
lea ecx, [eax + 2]
mov dword [esi + 0x68], ecx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ebx, 4
add eax, 4
add edx, 4
add edi, 4
dec ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ecx
jne 0x42a787
mov eax, dword [esi + 0x78]
push eax
call fcn.004a8a9f
mov eax, dword [esi + 0x7c]
push eax
call fcn.004a8a9f
mov eax, dword [esi + 0x80]
push eax
call fcn.004a8a9f
mov ecx, dword [esi + 0x60]
mov edi, 1
shl edi, cl
mov ecx, dword [esi + 0x64]
mov ebx, 1
shl ebx, cl
mov ecx, dword [esi + 0x68]
mov eax, 1
shl eax, cl
dec edi
lea edx, [edi*8]
dec ebx
dec eax
push edx
mov dword [ebp + 0xc], eax
call fcn.00497c34
mov dword [esi + 0x78], eax
lea eax, [ebx*8]
push eax
call fcn.00497c34
mov ecx, dword [ebp + 0xc]
lea edx, [ecx*8]
push edx
mov dword [esi + 0x7c], eax
call fcn.00497c34
mov dword [esi + 0x80], eax
lea ecx, [edi + edi]
add esp, 0x18
xor eax, eax
test ecx, ecx
jle 0x42a987
cmp eax, edi
mov ecx, eax
jl 0x42a979
mov ecx, edi
mov edx, dword [esi + 0x78]
mov dword [edx + eax*4], ecx
inc eax
lea ecx, [edi + edi]
cmp eax, ecx
jl 0x42a971
lea edx, [ebx + ebx]
xor eax, eax
test edx, edx
jle 0x42a9a3
cmp eax, ebx
mov ecx, eax
jl 0x42a998
mov ecx, ebx
mov edi, dword [esi + 0x7c]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, edx
jl 0x42a990
mov edi, dword [ebp + 0xc]
lea edx, [edi + edi]
xor eax, eax
test edx, edx
jle 0x42a9c6
nop
cmp eax, edi
mov ecx, eax
jl 0x42a9b8
mov ecx, edi
mov ebx, dword [esi + 0x80]
mov dword [ebx + eax*4], ecx
inc eax
cmp eax, edx
jl 0x42a9b0
mov edi, 2
lea ecx, [esi + 0x484]
mov dword [ebp + 0xc], 0x20
mov eax, dword [esi + 0x54]
lea ebx, [edi - 2]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x400], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x400], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi - 1]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3fc], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 4], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x404], edx
mov ebx, dword [esi + 0x54]
mov edx, edi
imul edx, ebx
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, ebx
mov dword [ecx - 0x3f8], edx
mov ebx, dword [esi + 0x58]
mov edx, edi
imul edx, ebx
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, ebx
mov dword [ecx + 8], edx
mov ebx, dword [esi + 0x5c]
mov edx, edi
imul edx, ebx
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, ebx
mov dword [ecx + 0x408], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi + 1]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3f4], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 0xc], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x40c], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi + 2]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3f0], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 0x10], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x410], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi + 3]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3ec], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 0x14], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x414], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi + 4]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3e8], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 0x18], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov ebx, dword [esi + 0x5c]
shr edx, 7
and edx, ebx
mov dword [ecx + 0x418], edx
mov eax, dword [esi + 0x54]
lea ebx, [edi + 5]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x54]
shr edx, 7
and edx, eax
mov dword [ecx - 0x3e4], edx
mov eax, dword [esi + 0x58]
mov edx, ebx
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esi + 0x58]
shr edx, 7
and edx, eax
mov dword [ecx + 0x1c], edx
imul ebx, dword [esi + 0x5c]
mov eax, 0x80808081
mul ebx
mov eax, dword [esi + 0x5c]
shr edx, 7
and edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x41c], edx
add ecx, 0x20
add edi, 8
dec eax
mov dword [ebp + 0xc], eax
jne 0x42a9d8
mov cl, byte [esi + 0x10]
test cl, cl
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
jne 0x42ad08
cmp edi, eax
je 0x42ad08
mov edi, edi
mov ebx, dword [edi + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + 0xc94]
mov dword [ebp + 0xc], ebx
call fcn.0041e810
mov eax, dword [esi + 0xc98]
cmp dword [ebp + 8], eax
je 0x42acbb
mov ecx, ebx
call fcn.0040f7d0
mov al, byte [edi + 0x11]
test al, al
jne 0x42ad03
mov eax, dword [edi + 8]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x42ace4
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x42ad03
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x42acd7
jmp 0x42ad03
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x11]
test cl, cl
jne 0x42ad01
mov edi, edi
cmp edi, dword [eax + 8]
jne 0x42ad01
mov edi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x42acf0
mov edi, eax
cmp edi, dword [ebp - 0x18]
jne 0x42ac90
xor edx, edx
mov dl, byte [esi + 0xca0]
mov ecx, esi
push edx
call fcn.004282c0
mov al, byte [esi + 0x10]
test al, al
je 0x42adb8
mov ecx, dword [esi + 8]
push esi
call fcn.004231c0
test al, al
jne 0x42adb8
mov eax, str.3D_init_error:
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ad40
sub eax, edx
push eax
add esi, 0xcd0
push str.3D_init_error:
mov ecx, esi
call fcn.00402c7f
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x4ee4a8
mov ecx, esi
call fcn.00406496
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00422330
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a773c
mov edx, dword [ebp - 0x10]
add esp, 4
push edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
inc dword [esi + 0xca4]
mov eax, dword [ebp - 0x18]
push eax
mov byte [esi + 0xc84], 1
mov ecx, dword [eax]
push ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00422330
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a773c
mov edx, dword [ebp - 0x10]
add esp, 4
xor eax, eax
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8