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

Disassembly:
push 0xffffffffffffffff
push 0x42d427
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6f4
push ebp
push esi
call fcn.0042b966
mov ecx, dword [eax + 4]
call fcn.004258bf
mov ecx, dword [0x43e114]
mov eax, dword [0x43e118]
push ecx
xor ebp, ebp
push eax
push eax
mov dword [esp + 0x710], ebp
call fcn.00411f60
add esp, 0xc
mov esi, eax
mov eax, dword [0x43e118]
mov ecx, 0x43e110
push eax
push esi
call fcn.0040be70
push 0x78
mov dword [0x43e118], esi
call sub.d3d8.dll_Direct3DCreate8
mov esi, eax
cmp esi, ebp
jne 0x406035
push ebp
push ebp
push 0x43e0fc
call fcn.00416160
add esp, 4
push eax
call fcn.0042ae55
mov dword [esp + 0x704], 0xffffffff
call fcn.0042b966
mov ecx, dword [eax + 4]
call fcn.004258d4
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x6f4]
mov dword fs:[0], ecx
add esp, 0x700
ret
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
test eax, eax
jbe 0x4063fa
push ebx
push edi
mov ecx, dword [esi]
lea edx, [esp + 0x88]
push edx
push 1
push ebp
push esi
call dword [ecx + 0x34]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x1f]
push eax
push 0
push ecx
lea ecx, [esp + 0x270]
call fcn.0040afd0
lea edx, [esp + 0x16]
lea eax, [esp + 0x15]
push edx
push eax
lea ecx, [esp + 0x27c]
mov byte [esp + 0x714], 1
call fcn.00409b30
lea ecx, [esp + 0x1e]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28c]
mov byte [esp + 0x714], 2
call fcn.00409e90
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1a]
push eax
push ecx
lea ecx, [esp + 0x29c]
mov byte [esp + 0x714], 3
call fcn.0040a2d0
lea edx, [esp + 0x14]
lea eax, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x2ac]
mov byte [esp + 0x714], 4
call fcn.0040a630
lea ecx, [esp + 0x19]
lea edx, [esp + 0x1b]
push ecx
push edx
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x714], 5
call fcn.0040a7c0
mov eax, dword [0x43e118]
lea ecx, [esp + 0x15c]
push ecx
push 1
push eax
mov ecx, 0x43e110
mov byte [esp + 0x718], 6
call fcn.0040fc70
lea ecx, [esp + 0x2b4]
mov byte [esp + 0x70c], 0xb
call fcn.0040aa30
lea ecx, [esp + 0x2a4]
mov byte [esp + 0x70c], 0xa
call fcn.0040a6e0
lea ecx, [esp + 0x294]
mov byte [esp + 0x70c], 9
call fcn.0040a540
lea ecx, [esp + 0x284]
mov byte [esp + 0x70c], 8
call fcn.0040a100
mov byte [esp + 0x70c], 7
lea ecx, [esp + 0x274]
call fcn.00409da0
lea ecx, [esp + 0x264]
mov byte [esp + 0x70c], 0
call fcn.00409a50
mov edi, dword [0x43e118]
lea edx, [esp + 0x88]
add edi, 0xfffffe84
push edx
mov dword [edi], ebp
call fcn.00406f40
add esp, 4
lea ecx, [esp + 0x2d8]
mov dword [edi + 4], eax
mov eax, dword [esi]
push ecx
push 2
push ebp
push esi
call dword [eax + 0x14]
lea edx, [esp + 0x2d8]
lea eax, [esp + 0x4d8]
push edx
push eax
lea ecx, [edi + 8]
push str._s____s
push ecx
call fcn.00418008
mov edx, dword [esi]
add esp, 0x10
xor ebx, ebx
push ebp
push esi
call dword [edx + 0x18]
test eax, eax
jbe 0x40630c
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebp
push esi
call dword [eax + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x68]
push ecx
push edx
lea ecx, [edi + 0x108]
mov dword [esp + 0x2c], eax
call fcn.0040b000
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4062e0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x16]
push 0
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040d210
lea edx, [esp + 0x50]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x714], 0xc
call fcn.0040b410
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [edi + 0x118]
mov byte [esp + 0x714], 0xd
call fcn.0040c970
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040bea0
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x70c], 0xc
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x78]
call fcn.0040b5b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x70c], 0
call fcn.0040b5b0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
lea ecx, [edx + 0x14]
lea edx, [esp + 0x64]
push edx
call fcn.0040b690
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
push esi
push edi
call fcn.00406440
mov eax, dword [esi]
add esp, 0x14
inc ebx
push ebp
push esi
call dword [eax + 0x18]
cmp ebx, eax
jb 0x406202
push esi
push edi
call fcn.004066a0
push esi
push edi
call fcn.004069b0
push esi
push edi
call fcn.00406bd0
lea ecx, [esp + 0xa0]
push ecx
call fcn.00406e00
lea edx, [esp + 0xa4]
mov byte [edi + 0x168], al
push edx
call fcn.00406e10
mov byte [edi + 0x169], al
lea eax, [esp + 0xa8]
push eax
call fcn.00406e50
lea ecx, [esp + 0xac]
mov byte [edi + 0x16a], al
push ecx
call fcn.00406ea0
lea edx, [esp + 0xb0]
mov byte [edi + 0x16b], al
push edx
call fcn.00406eb0
mov byte [edi + 0x16c], al
lea eax, [esp + 0xb4]
push eax
call fcn.00406ec0
lea ecx, [esp + 0xb8]
mov byte [edi + 0x16d], al
push ecx
call fcn.00406ed0
lea edx, [esp + 0xbc]
mov byte [edi + 0x16e], al
push edx
call fcn.00406ee0
mov byte [edi + 0x16f], al
lea eax, [esp + 0xc0]
push eax
call fcn.00406f10
mov byte [edi + 0x170], al
mov ecx, dword [esp + 0x11c]
mov dword [edi + 0x174], ecx
mov edx, dword [esp + 0x120]
add esp, 0x3c
mov dword [edi + 0x178], edx
mov eax, dword [esi]
inc ebp
push esi
call dword [eax + 0x10]
cmp ebp, eax
jb 0x406045
pop edi
pop ebx
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov dword [esp + 0x704], 0xffffffff
call fcn.0042b966
mov ecx, dword [eax + 4]
call fcn.004258d4
mov ecx, dword [esp + 0x6fc]
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x700
ret