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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47486c
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov esi, ecx
lea ecx, [esp + 0xa8]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x50]
test eax, eax
je 0x407931
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [fcn.004f44ec]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x164]
inc ecx
test eax, eax
mov dword [esp + 0x34], ecx
je 0x40750f
lea ebx, [esi + 0x3c]
push 1
push 1
mov ecx, ebx
call fcn.0040f7a0
test eax, eax
je 0x4074f7
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0040f6d0
mov edx, dword [edi + 4]
lea ecx, [esp + 0x2c]
push 0
push ecx
push 1
push 1
push edx
mov ecx, ebx
call fcn.0040f690
jmp 0x407522
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.004713e4
mov edx, dword [esi + 0x1c]
mov ebx, dword [fcn.004f4544]
push 0
push 0
push 0x1200
push edx
call ebx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x154]
push eax
push 1
push 0
lea ecx, [esp + 0x48]
call fcn.0046d436
mov ecx, dword [esi + 0x158]
mov dword [esp + 0x110], 0
push ecx
push 1
push 0
lea ecx, [esp + 0x50]
call fcn.0046d436
mov edx, dword [edi + 8]
push 1
push edx
mov byte [esp + 0x118], 1
call dword [0x4f4074]
push eax
call fcn.0046d3b4
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x31
push eax
call ebx
mov ebp, dword [edi]
push eax
call fcn.0046d3b4
push eax
mov ecx, edi
call dword [ebp + 0x28]
mov edx, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x15c]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov eax, dword [esi + 0x160]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jle 0x40789f
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
push 0
push ecx
push 0x120f
push edx
call ebx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x54]
mov ebp, eax
push ecx
push ebp
lea eax, [esp + 0xc0]
push 0x1203
push edx
mov dword [esp + 0x64], 0x37
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x50
call ebx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x1207
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
cmp eax, ecx
jge 0x40764f
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xb0]
cmp edx, ecx
jg 0x40787a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x407683
mov ecx, dword [esi + 0x164]
test ecx, ecx
jne 0x407683
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x154]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0047145a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
test ch, 0x80
je 0x407719
mov ecx, esi
mov dword [esp + 0x78], 4
call fcn.00469a87
mov edx, dword [esi + 0x1c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x9c], edx
mov edx, dword [esi]
lea eax, [esp + 0x78]
mov dword [esp + 0xa0], ecx
push eax
mov ecx, esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 1
call dword [edx + 0xb8]
jmp 0x40787a
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x407788
cmp dword [esi + 0x80], ebp
jne 0x407782
mov ecx, dword [esi + 0x168]
test ecx, ecx
je 0x407782
mov edx, dword [esi]
push 2
mov ecx, dword [esi + 0x138]
mov ebx, dword [esi + 0x13c]
push 1
push ecx
xor ecx, ecx
cmp ebp, ebx
sete cl
push ecx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
sub esp, 0x10
mov ecx, esp
push edi
mov dword [ecx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xc0]
mov ebx, dword [fcn.004f4544]
jmp 0x4077f1
mov edx, dword [esi]
push 1
jmp 0x407739
mov eax, dword [esi + 0x4c]
push 0
neg eax
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [fcn.004f44f8]
mov eax, dword [esi + 0x138]
xor ecx, ecx
push eax
mov eax, dword [esi + 0x13c]
cmp ebp, eax
lea eax, [esp + 0x58]
sete cl
push ecx
push eax
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov edx, dword [esi]
push edi
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi + 0x4c]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [fcn.004f44f8]
mov ecx, esi
call fcn.00407410
test eax, eax
je 0x40787a
test byte [esi + 0x128], 1
je 0x40787a
cmp dword [esi + 0x80], ebp
jne 0x40787a
test byte [esi + 0x94], 2
je 0x40787a
mov eax, dword [esi + 0x164]
test eax, eax
je 0x40786b
mov eax, dword [esi + 0x138]
push 3
push 1
push eax
mov eax, dword [esi + 0x13c]
xor ecx, ecx
cmp ebp, eax
lea eax, [esp + 0x60]
sete cl
push ecx
push eax
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov edx, dword [esi]
push edi
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xc0]
jmp 0x40787a
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [0x4f44a4]
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4075dc
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
sub ecx, ebx
cmp eax, ecx
jge 0x4078d5
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x4078d5
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x154]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.0047145a
mov eax, dword [esp + 0x50]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, edi
call fcn.0046cbac
lea ecx, [esp + 0x3c]
call fcn.0046d420
lea ecx, [esp + 0x44]
call fcn.0046d420
mov esi, 0x47eaa8
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x110], 2
call fcn.0046d420
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x110], 3
call fcn.0046d420
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x104
ret 4