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

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov edx, ecx
mov ebx, eax
mov ecx, 0x12
sub esp, 0xfc
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], eax
xor eax, eax
test ebp, ebp
rep stosd dword es:[edi], eax
lea edi, [esp + 0xa8]
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [eax + edx*4]
je 0x470665
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x470624
nop
lea esi, [esi]
mov edx, dword [esp + 0x3c]
test edx, edx
jg 0x4702d3
lea eax, [esp + 0xa8]
cmp ebp, eax
jne 0x470661
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4706a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x4c], edx
mov dword [esp], eax
call fcn.004974a0
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
lea ecx, [esp + 0x7c]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xe8]
mov dword [esp], eax
call fcn.004d27b0
add edi, eax
sub esi, eax
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0x80000000
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0x80000000
test eax, eax
mov dword [ebp + 0x38], 0xffffffff
mov dword [ebp + 0x3c], 0xffffffff
setne dl
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], edx
je 0x4702b0
mov eax, dword [ebp]
test eax, eax
je 0x4703bf
mov esi, dword [ebp + 0x18]
cmp dword [esp + 0x78], esi
je 0x4705f0
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00499010
test eax, eax
js 0x470609
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4703f9
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [esp + 0x8c], eax
mov ecx, dword [ebx + 0xe8]
xor eax, eax
xor edx, edx
test byte [ecx + 0xb0], 1
je 0x470412
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x94], edx
cmp dword [eax], 1
je 0x470570
mov eax, dword [ebx]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x124]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x120]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x58], eax
and eax, 4
or eax, dword [esp + 0x84]
cmp dword [ebx + 0xe4], 5
mov dword [esp + 0x84], eax
jne 0x4704a3
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edi
mov edx, dword [ecx + 0xe0]
cmp edx, 1
je 0x470560
cmp edx, 0xffffffff
je 0x470543
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], edx
mov edx, ebx
mov dword [esp], eax
mov eax, edi
call fcn.0046e650
mov edx, dword [edi + 0x50c]
mov dword [esp], 0x50
mov dword [esp + 0x40], edx
call fcn.0056e410
test eax, eax
je 0x4706bf
mov edx, dword [esp + 0x40]
mov ecx, 0x12
mov edi, eax
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x4705e0
mov ecx, dword [edx + 0x24]
mov dword [ecx + 0x48], eax
mov dword [edx + 0x24], eax
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0x4702b8
jmp 0x4702d3
mov edx, dword [ecx + 0x20]
cmp edx, 1
je 0x470560
test edx, edx
jne 0x4704bb
test byte [esp + 0x58], 1
je 0x4704bb
nop
or eax, 1
mov dword [esp + 0x84], eax
jmp 0x4704bb
mov eax, dword [ebx + 0x2b8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x158]
test eax, eax
jle 0x47042f
mov dword [esp + 0x18], 2
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov eax, dword [ecx + 0x130]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0056ca90
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
jmp 0x47042f
mov dword [edx + 0x20], eax
jmp 0x47052f
mov dword [esp], eax
call fcn.0055aec0
test eax, eax
mov dword [esp + 0x60], eax
jne 0x4703d3
mov eax, 0xfffffff4
mov dword [esp], ebp
mov dword [esp + 0x3c], eax
call fcn.00498ad0
mov eax, dword [esp + 0x3c]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0xe8]
test byte [ecx + 0xb0], 1
je 0x470661
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], 0
mov edx, ebx
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80000000
mov dword [esp], ebp
call fcn.0046e650
xor eax, eax
jmp 0x470609
lea eax, [esp + 0xa8]
lea ebp, [esp + 0xa8]
mov dword [esp], eax
call fcn.004974a0
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x54], 1
jmp 0x4702b0
mov eax, dword [ebx + 0xe8]
mov dword [esp], eax
call fcn.004d2ea0
mov dword [ebx + 0xe8], 0
xor eax, eax
jmp 0x470609
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00498ad0
mov eax, 0xfffffff4
jmp 0x470609