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

Disassembly:
push 0xffffffffffffffff
push 0x49911e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba858]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
xor ebx, ebx
push 0x20
mov ebp, 2
mov dword [0x54bef4], ebx
call sub.d3d9.dll_Direct3DCreate9
cmp eax, ebx
mov dword [0x4bcf44], eax
je 0x42d696
call fcn.00429e80
test eax, eax
jne 0x42d696
push 0x138
call fcn.004812ee
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x1f0], ebx
je 0x42d0a0
mov ecx, eax
call fcn.00464130
jmp 0x42d0a2
xor eax, eax
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x1f0], esi
mov dword [0x54bef4], eax
je 0x42d696
cmp dword [esp + 0x1fc], ebx
je 0x42d0d1
call fcn.0042b670
test eax, eax
je 0x42d696
jmp 0x42d0de
call fcn.0042c5f0
test eax, eax
jne 0x42d696
movzx eax, byte [0x4bcc5c]
and eax, 1
push esi
mov dword [0x4bcf18], eax
call fcn.0042a200
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
fld1
mov edx, dword [ecx + 0xac]
add esp, 4
push ebx
push ecx
fstp dword [esp]
push ebx
push 3
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
lea edx, [esp + 0xb8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, 0x400
cmp dword [esp + 0x110], eax
jb 0x42d696
cmp dword [esp + 0x114], eax
jb 0x42d696
test byte [esp + 0xf4], 0x22
mov dword [0x4bcf2c], 1
je 0x42d160
mov dword [0x4bcf2c], ebx
push ebx
push 0x10
call fcn.0042abc0
push ebx
push 0x20
mov dword [0x4bcf50], eax
call fcn.0042abc0
push ebx
push 0x40
mov dword [0x4bcf54], eax
call fcn.0042abc0
push ebx
push 0x80
mov dword [0x4bcf58], eax
call fcn.0042abc0
push ebx
push pe_nt_image_headers32
mov dword [0x4bcf5c], eax
call fcn.0042abc0
push 1
push 0x10
mov dword [0x4bcf60], eax
call fcn.0042abc0
mov edi, eax
add esp, 0x30
cmp edi, ebx
je 0x42d696
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
xor eax, eax
mov edi, edi
mov ecx, eax
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov dword [ebp + eax*4], ecx
add eax, 1
cmp eax, 0x100
jl 0x42d1d0
mov eax, 0x10
push 0x40
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb0]
push eax
push edi
push ebp
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call fcn.0042b010
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
add esp, 0x14
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push edi
push ebx
push eax
call edx
push ebx
call fcn.0042a200
fld dword [0x49b0bc]
fst dword [esp + 0x2c]
mov eax, dword [0x4bcf48]
fst dword [esp + 0x30]
add esp, 4
fldz
mov dword [esp + 0x38], esi
fst dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
fld1
mov dword [esp + 0x58], esi
fst dword [esp + 0x34]
mov dword [esp + 0x5c], ebx
fxch st(1)
mov dword [esp + 0x78], esi
fst dword [esp + 0x40]
mov dword [esp + 0x7c], ebx
fst dword [esp + 0x44]
mov dword [esp + 0x98], esi
fld dword [0x49b0b8]
mov dword [esp + 0x9c], ebx
fst dword [esp + 0x48]
push 0x1c4
fxch st(3)
push eax
fst dword [esp + 0x54]
fxch st(1)
fst dword [esp + 0x58]
fxch st(2)
fst dword [esp + 0x5c]
fst dword [esp + 0x68]
fst dword [esp + 0x7c]
fxch st(2)
fst dword [esp + 0x6c]
fst dword [esp + 0x78]
fxch st(1)
fstp dword [esp + 0x70]
fxch st(2)
fst dword [esp + 0x74]
fxch st(2)
fst dword [esp + 0x88]
fstp dword [esp + 0x98]
fst dword [esp + 0x8c]
fst dword [esp + 0x9c]
fxch st(1)
fst dword [esp + 0x90]
fstp dword [esp + 0x94]
fst dword [esp + 0xa8]
fstp dword [esp + 0xac]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push 0x20
lea edx, [esp + 0x2c]
push edx
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
call fcn.0042b290
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b300
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
je 0x42d3bf
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
jmp 0x42d691
push 0x400
push 0x400
call fcn.0042ac50
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42d66b
mov edx, dword [esi]
mov ecx, dword [edx + 0x48]
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call ecx
mov edx, dword [esp + 0x18]
push ebx
push edx
call fcn.0042b440
mov edx, dword [esp + 0x20]
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
add esp, 8
push edx
push ebx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x4bcf48]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push eax
call edx
fld1
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
push ebx
push ecx
fstp dword [esp]
push ebx
push 3
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push edi
push ebx
push eax
call edx
push ebx
call fcn.0042a200
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
add esp, 4
push 0x1c4
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push 0x20
lea edx, [esp + 0x2c]
push edx
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov edx, dword [esp + 0x14]
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
fldz
mov eax, dword [0x4bcf48]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
mov dword [esp + 0x14], ebx
fld dword [0x49b0b4]
push eax
fst dword [esp + 0x64]
fst dword [esp + 0x88]
fst dword [esp + 0xa4]
fstp dword [esp + 0xa8]
fst dword [esp + 0x68]
fstp dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
call edx
fld1
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
push ebx
push ecx
fstp dword [esp]
push ebx
push 3
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push esi
push ebx
push eax
call edx
push ebx
call fcn.0042a200
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
add esp, 4
push 0x1c4
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push 0x20
lea edx, [esp + 0x2c]
push edx
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov esi, ebp
call fcn.0042b290
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b300
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42d5e0
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42d5f3
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42d5e0
cmp ecx, 0x80
jl 0x42d612
mov dword [0x4bcf2c], 1
jmp 0x42d9ef
cmp dword [0x4bcf2c], ebx
je 0x42d9ef
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
je 0x42d64f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
jmp 0x42d691
push 0x300
push 0x400
call fcn.0042ac50
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x42d781
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov ebp, 1
call fcn.0042cf60
mov eax, dword [0x4bcf60]
cmp eax, ebx
je 0x42d6b2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [0x4bcf60], ebx
mov eax, dword [0x4bcf5c]
cmp eax, ebx
je 0x42d6c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf5c], ebx
mov eax, dword [0x4bcf58]
cmp eax, ebx
je 0x42d6e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf58], ebx
mov eax, dword [0x4bcf54]
cmp eax, ebx
je 0x42d6f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf54], ebx
mov eax, dword [0x4bcf50]
cmp eax, ebx
je 0x42d70e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf50], ebx
mov eax, dword [0x4bcf4c]
cmp eax, ebx
je 0x42d725
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf4c], ebx
mov eax, dword [0x4bcf48]
cmp eax, ebx
je 0x42d73c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf48], ebx
mov eax, dword [0x4bcf44]
cmp eax, ebx
je 0x42d753
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4bcf44], ebx
mov ecx, dword [0x54bef4]
cmp ecx, ebx
je 0x42d773
mov esi, ecx
call fcn.004641b0
push esi
call fcn.00481252
add esp, 4
mov dword [0x54bef4], ebx
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, ebp
jmp 0x42da79
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
call edx
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.0042b440
mov edx, dword [esp + 0x20]
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
add esp, 8
push edx
push ebx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x4bcf48]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push eax
call edx
fld1
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
push ebx
push ecx
fstp dword [esp]
push ebx
push 3
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push edi
push ebx
push eax
call edx
push ebx
call fcn.0042a200
fldz
mov eax, dword [0x4bcf48]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
add esp, 4
fld1
push 0x1c4
fst dword [esp + 0x64]
push eax
fst dword [esp + 0x8c]
fst dword [esp + 0xa8]
fstp dword [esp + 0xac]
fst dword [esp + 0x6c]
fstp dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push 0x20
lea edx, [esp + 0x2c]
push edx
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov edx, dword [esp + 0x14]
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
fldz
mov eax, dword [0x4bcf48]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
mov dword [esp + 0x14], ebx
fld dword [0x49b0b4]
push eax
fst dword [esp + 0x64]
fxch st(1)
fst dword [esp + 0x68]
fstp dword [esp + 0x84]
fld dword [0x49b0b0]
fst dword [esp + 0x88]
fstp dword [esp + 0xa8]
fstp dword [esp + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
call edx
fld1
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
push ebx
push ecx
fstp dword [esp]
push ebx
push 3
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push esi
push ebx
push eax
call edx
push ebx
call fcn.0042a200
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
add esp, 4
push 0x1c4
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
push 0x20
lea edx, [esp + 0x2c]
push edx
push 2
push 5
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
call edx
mov eax, dword [0x4bcf48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov esi, ebp
call fcn.0042b290
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b300
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42d9c0
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42d9d3
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42d9c0
cmp ecx, 0x80
setl al
sub eax, 1
and eax, 2
mov dword [0x4bcf2c], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
call fcn.00429bb0
call fcn.0042ab70
cmp dword [0x4bcf10], ebx
mov dword [0x4bccf8], ebx
je 0x42da25
cmp dword [0x4bcf34], ebx
jne 0x42da77
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edi, 0x400
mov esi, 0x300
push 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], esi
call fcn.0042b460
add esp, 0x10
test al, al
mov dword [0x4bcf08], ebx
je 0x42da6b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [0x4bcf10], edx
mov dword [0x4bcf34], eax
jmp 0x42da77
mov dword [0x4bcf10], edi
mov dword [0x4bcf34], esi
xor eax, eax
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret