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

Disassembly:
push 0xffffffffffffffff
push 0x49904e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba850]
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 0x42d666
call fcn.00429e50
test eax, eax
jne 0x42d666
push 0x138
call fcn.0048121e
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x1f0], ebx
je 0x42d070
mov ecx, eax
call fcn.00464060
jmp 0x42d072
xor eax, eax
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x1f0], esi
mov dword [0x54bef4], eax
je 0x42d666
cmp dword [esp + 0x1fc], ebx
je 0x42d0a1
call fcn.0042b640
test eax, eax
je 0x42d666
jmp 0x42d0ae
call fcn.0042c5c0
test eax, eax
jne 0x42d666
movzx eax, byte [0x4bcc5c]
and eax, 1
push esi
mov dword [0x4bcf18], eax
call fcn.0042a1d0
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 0x42d666
cmp dword [esp + 0x114], eax
jb 0x42d666
test byte [esp + 0xf4], 0x22
mov dword [0x4bcf2c], 1
je 0x42d130
mov dword [0x4bcf2c], ebx
push ebx
push 0x10
call fcn.0042ab90
push ebx
push 0x20
mov dword [0x4bcf50], eax
call fcn.0042ab90
push ebx
push pe_nt_image_headers32
mov dword [0x4bcf54], eax
call fcn.0042ab90
push ebx
push 0x80
mov dword [0x4bcf58], eax
call fcn.0042ab90
push ebx
push 0x100
mov dword [0x4bcf5c], eax
call fcn.0042ab90
push 1
push 0x10
mov dword [0x4bcf60], eax
call fcn.0042ab90
mov edi, eax
add esp, 0x30
cmp edi, ebx
je 0x42d666
push 0x800
push pe_nt_image_headers32
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 0x42d1a0
mov eax, 0x10
push pe_nt_image_headers32
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.0042afe0
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.0042a1d0
fld dword [0x49b0ac]
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 [0x49b0a8]
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.0042b260
push pe_nt_image_headers32
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b2d0
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 0x42d38f
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 0x42d661
push 0x400
push 0x400
call fcn.0042ac20
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42d63b
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.0042b410
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.0042a1d0
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 [0x49b0a4]
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.0042a1d0
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.0042b260
push pe_nt_image_headers32
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b2d0
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42d5b0
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42d5c3
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42d5b0
cmp ecx, 0x80
jl 0x42d5e2
mov dword [0x4bcf2c], 1
jmp 0x42d9bf
cmp dword [0x4bcf2c], ebx
je 0x42d9bf
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 0x42d61f
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 0x42d661
push 0x300
push 0x400
call fcn.0042ac20
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x42d751
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.0042cf30
mov eax, dword [0x4bcf60]
cmp eax, ebx
je 0x42d682
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 0x42d699
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 0x42d6b0
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 0x42d6c7
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 0x42d6de
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 0x42d6f5
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 0x42d70c
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 0x42d723
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 0x42d743
mov esi, ecx
call fcn.004640e0
push esi
call fcn.00481182
add esp, 4
mov dword [0x54bef4], ebx
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, ebp
jmp 0x42da49
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.0042b410
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.0042a1d0
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 [0x49b0a4]
push eax
fst dword [esp + 0x64]
fxch st(1)
fst dword [esp + 0x68]
fstp dword [esp + 0x84]
fld dword [0x49b0a0]
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.0042a1d0
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.0042b260
push pe_nt_image_headers32
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b2d0
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42d990
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42d9a3
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42d990
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.00429b80
call fcn.0042ab40
cmp dword [0x4bcf10], ebx
mov dword [0x4bccf8], ebx
je 0x42d9f5
cmp dword [0x4bcf34], ebx
jne 0x42da47
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.0042b430
add esp, 0x10
test al, al
mov dword [0x4bcf08], ebx
je 0x42da3b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [0x4bcf10], edx
mov dword [0x4bcf34], eax
jmp 0x42da47
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