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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ed8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x427030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
test byte [0x429aa8], 1
jne 0x403a1a
or dword [0x429aa8], 1
push 0x4180a0
mov dword [0x429a6c], esi
mov dword [0x429a70], esi
mov dword [0x429a74], esi
mov dword [0x429a78], esi
call fcn.00406479
add esp, 4
test byte [0x429aa8], 1
mov eax, dword [0x429a6c]
mov ecx, dword [0x429a70]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jne 0x403a60
or dword [0x429aa8], 1
push 0x4180a0
mov dword [0x429a6c], esi
mov dword [0x429a70], esi
mov dword [0x429a74], esi
mov dword [0x429a78], esi
call fcn.00406479
add esp, 4
mov edx, dword [0x429a74]
mov eax, dword [0x429a78]
push 0x20
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
call sub.d3d9.dll_Direct3DCreate9
mov dword [ebx], eax
cmp eax, esi
jne 0x403a8f
push 0x425134
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], esi
call fcn.0040789b
mov ecx, dword [ebx + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
push esi
push eax
call edx
cmp eax, esi
jge 0x403ab1
push 0x425134
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], esi
call fcn.0040789b
call fcn.00403360
call fcn.00403360
call fcn.00403360
call fcn.00403360
call fcn.00403360
call fcn.00403360
mov dword [ebp - 0x7c], 0x16
mov dword [ebp - 0x78], 0x15
mov dword [ebp - 0x74], 0x23
mov dword [ebp - 0x70], 0x18
mov dword [ebp - 0x6c], 0x19
mov dword [ebp - 0x68], 0x17
call fcn.00403360
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 6
jge 0x403c31
mov edi, dword [ebp + ecx*4 - 0x7c]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push edi
push esi
push eax
mov dword [ebp - 0x54], edi
call edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], esi
jmp 0x403b30
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x18], eax
jge 0x403c26
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x18]
push edx
push edi
push esi
push eax
mov eax, dword [ecx + 0x1c]
call eax
test byte [0x429ab0], 1
jne 0x403bf1
or dword [0x429ab0], 1
mov byte [ebp - 4], 1
push 4
mov dword [0x429840], 0x41af5c
call fcn.00406d34
add esp, 4
cmp eax, esi
je 0x403b8b
mov dword [eax], 0x42994c
jmp 0x403b8d
xor eax, eax
mov dword [0x42994c], eax
mov dword [0x429958], esi
mov dword [0x42995c], esi
mov dword [0x429960], esi
push 4
mov byte [ebp - 4], 3
call fcn.00406d34
add esp, 4
cmp eax, esi
je 0x403bbe
mov dword [eax], 0x429964
jmp 0x403bc0
xor eax, eax
mov dword [0x429964], eax
mov dword [0x429970], esi
mov dword [0x429974], esi
mov dword [0x429978], esi
mov byte [ebp - 4], 5
call fcn.004033d0
push 0x418090
call fcn.00406479
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x64]
push ecx
add edi, 0x140
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
call fcn.004049a0
inc dword [ebp - 0x18]
mov edi, dword [ebp - 0x54]
jmp 0x403b30
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
jmp 0x403b03
call fcn.00403360
push 0x38
lea edi, [ebx + 0x18]
push esi
push edi
call fcn.0040abb0
add esp, 0xc
push 0x38
lea eax, [ebx + 0x50]
push esi
push eax
call fcn.0040abb0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [edi], edx
lea edx, [ebp - 0x20]
push edx
push 2
push esi
mov dword [ebx + 0x1c], eax
push 0x16
mov eax, 1
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx]
push 1
mov dword [ebx + 0x20], 0x16
mov dword [ebx + 0x30], 3
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x40], 0x4b
mov dword [ebx + 0x44], 2
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x4c], esi
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [ebp - 0x20]
xor eax, eax
dec ecx
cmp eax, ecx
sbb eax, eax
and eax, ecx
mov dword [ebx + 0x2c], eax
xor eax, eax
mov edx, 2
mov dword [ebx + 0x28], edx
cmp eax, esi
jne 0x403cd9
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
lea ecx, [edx - 1]
jmp 0x403ce8
mov ecx, 1
cmp eax, ecx
jne 0x403ce8
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], esi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x7c], edx
lea edx, [ebp - 0x24]
push edx
push esi
push 1
push 0x16
mov dword [ebx + 0x58], eax
mov eax, dword [ebx]
push 1
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], 0x4b
mov dword [ebx + 0x80], esi
mov dword [ebx + 0x84], 0x80000000
mov dword [ebp - 0x24], esi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov ecx, dword [ebp - 0x24]
dec ecx
xor edx, edx
cmp edx, ecx
sbb eax, eax
and eax, ecx
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], eax
lea ecx, [edx + 0xe]
mov esi, edi
cmp byte [ebx + 0x14], dl
jne 0x403d52
lea esi, [ebx + 0x50]
lea edi, [ebp - 0xc4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea edi, [esi + 0x24]
nop
cmp esi, 4
jge 0x403dee
test esi, esi
jne 0x403d7d
mov dword [ebx + 8], 0x44
mov dword [ebx + 0xc], 1
jmp 0x403da7
cmp esi, 1
jne 0x403d87
mov dword [ebx + 0xc], esi
jmp 0x403da4
mov eax, 2
cmp esi, eax
jne 0x403d9c
mov dword [ebx + 8], 0x44
mov dword [ebx + 0xc], eax
jmp 0x403da7
cmp esi, 3
jne 0x403da7
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edi
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebx + 4]
push edx
lea edx, [ebp - 0xc4]
push edx
mov edx, dword [ebx + 8]
push edx
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebx + 0xc]
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
jge 0x403dee
cmp esi, 3
jne 0x403de8
push 0x425134
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0
call fcn.0040789b
inc esi
jmp 0x403d60
mov ecx, ebx
call fcn.004047f0
test al, al
jne 0x403e0e
push 0x425134
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0
call fcn.0040789b
mov ecx, ebx
call fcn.004041e0
test al, al
jne 0x403e2e
push 0x425134
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0
call fcn.0040789b
mov ecx, ebx
call fcn.00404260
mov ecx, ebx
call fcn.00403e90
test al, al
jne 0x403e55
push 0x425134
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], 0
call fcn.0040789b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4