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

Disassembly:
push 0xffffffffffffffff
push 0x49921e
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 0x42d706
call fcn.00429ef0
test eax, eax
jne 0x42d706
push 0x138
call fcn.004813ee
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x1f0], ebx
je 0x42d110
mov ecx, eax
call fcn.00464230
jmp 0x42d112
xor eax, eax
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x1f0], esi
mov dword [0x54bef4], eax
je 0x42d706
cmp dword [esp + 0x1fc], ebx
je 0x42d141
call fcn.0042b6e0
test eax, eax
je 0x42d706
jmp 0x42d14e
call fcn.0042c660
test eax, eax
jne 0x42d706
movzx eax, byte [0x4bcc5c]
and eax, 1
push esi
mov dword [0x4bcf18], eax
call fcn.0042a270
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 0x42d706
cmp dword [esp + 0x114], eax
jb 0x42d706
test byte [esp + 0xf4], 0x22
mov dword [0x4bcf2c], 1
je 0x42d1d0
mov dword [0x4bcf2c], ebx
push ebx
push 0x10
call fcn.0042ac30
push ebx
push 0x20
mov dword [0x4bcf50], eax
call fcn.0042ac30
push ebx
push 0x40
mov dword [0x4bcf54], eax
call fcn.0042ac30
push ebx
push 0x80
mov dword [0x4bcf58], eax
call fcn.0042ac30
push ebx
push pe_nt_image_headers32
mov dword [0x4bcf5c], eax
call fcn.0042ac30
push 1
push 0x10
mov dword [0x4bcf60], eax
call fcn.0042ac30
mov edi, eax
add esp, 0x30
cmp edi, ebx
je 0x42d706
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 0x42d240
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.0042b080
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.0042a270
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.0042b300
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b370
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 0x42d42f
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 0x42d701
push 0x400
push 0x400
call fcn.0042acc0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42d6db
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.0042b4b0
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.0042a270
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.0042a270
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.0042b300
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b370
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42d650
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42d663
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42d650
cmp ecx, 0x80
jl 0x42d682
mov dword [0x4bcf2c], 1
jmp 0x42da5f
cmp dword [0x4bcf2c], ebx
je 0x42da5f
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 0x42d6bf
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 0x42d701
push 0x300
push 0x400
call fcn.0042acc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x42d7f1
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.0042cfd0
mov eax, dword [0x4bcf60]
cmp eax, ebx
je 0x42d722
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 0x42d739
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 0x42d750
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 0x42d767
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 0x42d77e
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 0x42d795
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 0x42d7ac
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 0x42d7c3
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 0x42d7e3
mov esi, ecx
call fcn.004642b0
push esi
call fcn.00481352
add esp, 4
mov dword [0x54bef4], ebx
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, ebp
jmp 0x42dae9
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.0042b4b0
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.0042a270
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.0042a270
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.0042b300
push 0x40
push 0x10
push 0x10
push ebx
lea eax, [ebp + 0x400]
push ebx
push eax
call fcn.0042b370
add esp, 0x18
xor ecx, ecx
mov eax, 0xff
jmp 0x42da30
mov edx, dword [esi + 0x400]
xor edx, dword [esi]
test edx, 0xfcfefc
jne 0x42da43
add ecx, 1
add esi, 4
sub eax, 1
jne 0x42da30
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.00429c20
call fcn.0042abe0
cmp dword [0x4bcf10], ebx
mov dword [0x4bccf8], ebx
je 0x42da95
cmp dword [0x4bcf34], ebx
jne 0x42dae7
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.0042b4d0
add esp, 0x10
test al, al
mov dword [0x4bcf08], ebx
je 0x42dadb
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [0x4bcf10], edx
mov dword [0x4bcf34], eax
jmp 0x42dae7
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