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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4f4214]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0045b170
mov ecx, dword [esi + 0x15c]
sub ecx, dword [esi + 0x4b8]
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x160]
add edi, dword [esi + 0x4b0]
add edx, dword [esi + 0x4b4]
sub eax, dword [esi + 0x4bc]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x4c8]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x470610
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x470610
mov ecx, dword [esi + 0x4c8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
je 0x470638
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x470638
mov ecx, dword [esi + 0x4cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x4a8], 0
jne 0x470648
push 0
jmp 0x470a7e
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4cc]
xor edx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
cmp ecx, edx
je 0x470688
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x470686
mov eax, dword [esi + 0x4cc]
add edi, dword [eax + 0x4a4]
mov dword [esp + 0x30], edi
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x4a8], edx
jle 0x47078c
mov ecx, dword [esi + 0x4a4]
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x470771
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
jne 0x470771
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x114]
push ebx
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x14], 0
jne 0x4706ff
inc dword [esp + 0x24]
jmp 0x47073d
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jge 0x47071b
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jle 0x47073d
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
add eax, dword [ebx]
mov ebx, dword [esp + 0x34]
add dword [esp + 0x18], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4a8]
jl 0x4706a6
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x4c0]
dec eax
imul edi, eax
add dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edx
cmp ecx, edx
jle 0x4707c5
mov eax, ebx
sub eax, dword [esp + 0x18]
cdq
idiv ecx
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x4c8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x4707f4
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4707f4
mov ecx, dword [esi + 0x4c8]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x1c], edi
mov ecx, dword [esi + 0x4cc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x470823
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x470823
mov ecx, dword [esi + 0x4cc]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4a8], eax
jle 0x470a6e
mov eax, dword [esi + 0x4a4]
mov ecx, dword [esp + 0x18]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc8]
mov ecx, edi
call eax
test al, al
je 0x470a59
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x470888
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x1a8]
push eax
mov ecx, esi
call edx
jmp 0x470a59
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x54], ebx
call edx
cmp dword [esp + 0x14], 0
jne 0x47092a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x24]
jne 0x4708ea
sub ebx, dword [esp + 0x58]
mov edx, 0
sub ebx, dword [esp + 0x20]
sets dl
dec edx
and edx, ebx
mov dword [esp + 0x14], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jge 0x470906
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jle 0x470970
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
jmp 0x470970
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jge 0x470946
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x47096c
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x20], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x470993
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x47099d
mov dword [esp + 0x10], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x4709b9
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jle 0x4709d5
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + ecx]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
add eax, dword [esp + 0x2c]
add ebx, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x58]
sub esp, 0x10
add eax, ecx
add eax, dword [esp + 0x2c]
mov ecx, esp
mov dword [ecx], edx
mov dword [esp + 0x70], ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [edi]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x34]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esi + 0x4c0]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x50]
add eax, ecx
add dword [esp + 0x1c], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x50]
add eax, edx
add dword [esp + 0x28], edi
sub ebx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4a8]
jl 0x470841
mov eax, dword [esi + 0x4c0]
imul eax, dword [esp + 0x40]
add eax, dword [esp + 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1ac]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret 0x10