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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4d0018]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041d690
lea esi, [ebx + 0x1b0]
mov eax, dword [ebx]
lea edi, [ebp + 8]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x6d4]
lea edi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x40]
test eax, eax
je 0x47c1d4
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
mov eax, dword [ebx]
call dword [eax + 0x40]
mov ecx, eax
call fcn.004167be
mov ecx, eax
call fcn.004264bd
mov ecx, dword [esp + 0x6c]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add dword [ebp + 8], ecx
add edi, dword [esp + 0x70]
sub eax, dword [esp + 0x74]
sub esi, dword [esp + 0x78]
mov ecx, dword [ebx + 0x6f8]
mov dword [esp + 0x20], edi
mov dword [ebp + 0xc], edi
mov dword [esp + 0x34], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], esi
test ecx, ecx
je 0x47c232
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c232
mov ecx, dword [ebx + 0x6f8]
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov edx, dword [esp + 0x34]
sub edx, eax
mov dword [esp + 0x34], edx
mov dword [ebp + 0x10], edx
mov ecx, dword [ebx + 0x6fc]
test ecx, ecx
je 0x47c25b
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c25b
mov ecx, dword [ebx + 0x6fc]
mov eax, dword [ecx]
call dword [eax + 0xd4]
sub esi, eax
mov dword [ebp + 0x14], esi
lea eax, [ebx + 0x6bc]
test eax, eax
je 0x47c985
cmp dword [eax + 4], 0
je 0x47c985
mov eax, dword [esp + 0x34]
sub esi, edi
sub eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x6fc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
test ecx, ecx
je 0x47c2aa
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c2aa
mov eax, dword [ebx + 0x6fc]
mov eax, dword [eax + 0x6bc]
add dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x6f8]
test ecx, ecx
je 0x47c2d2
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c2d2
mov eax, dword [ebx + 0x6f8]
mov eax, dword [eax + 0x6bc]
add esi, eax
mov dword [esp + 0x38], esi
xor eax, eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x6c0]
jge 0x47c4b7
mov eax, dword [ebx + 0x6bc]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x170]
test al, al
je 0x47c4a9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1a4]
test al, al
jne 0x47c4a9
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
mov eax, dword [esp + 0x24]
mov ecx, edi
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
call dword [eax + 0xcc]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x14], eax
call dword [edx + 0xd4]
cmp dword [esp + 0x14], 0
mov edx, eax
mov dword [esp + 0x3c], edx
jg 0x47c383
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
test edx, edx
jg 0x47c393
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov edx, eax
mov ecx, dword [esp + 0x2c]
mov eax, esi
cmp ecx, dword [esp + 0x14]
cmovg ecx, dword [esp + 0x14]
cmp esi, edx
cmovg eax, edx
mov edx, dword [edi]
push eax
push ecx
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call dword [edx + 0x1cc]
cmp dword [esp + 0x10], 0
jne 0x47c3c5
inc dword [esp + 0x30]
jmp 0x47c401
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
cmp dword [esp + 0x10], eax
jge 0x47c3e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
cmp dword [esp + 0x10], eax
jle 0x47c401
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
lea esi, [eax + 0xc]
mov eax, dword [edi]
call dword [eax + 0xbc]
mov ecx, dword [esi]
add ecx, dword [eax + 4]
xor eax, eax
add ecx, dword [esp + 0x10]
add dword [esp + 0x18], ecx
mov ecx, edi
cmp dword [esp + 0xc], eax
cmovg eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
call dword [eax + 0xf0]
cmp dword [esp + 0xc], eax
jge 0x47c45f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf0]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf8]
mov edx, dword [esp + 0xc]
cmp edx, eax
jle 0x47c481
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf8]
mov edx, eax
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
add ecx, edx
mov esi, dword [esp + 0x38]
add eax, ecx
cmp dword [esp + 0x48], eax
cmovg eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x47c4ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc ecx
jmp 0x47c2e8
and dword [esp + 0x28], 0
lea ecx, [eax - 1]
mov eax, dword [ebx + 0x6e4]
and dword [esp + 0x3c], 0
mov edi, dword [esp + 0x30]
imul eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
test edi, edi
jle 0x47c4f5
mov eax, esi
sub eax, ecx
xor ecx, ecx
cdq
idiv edi
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0x6f8]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x47c521
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c521
mov eax, dword [ebx + 0x6f8]
sub edi, dword [eax + 0x6c0]
jmp 0x47c555
cmp dword [esp + 0x30], 0
jg 0x47c559
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x230]
cmp eax, 4
jne 0x47c54a
mov eax, esi
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x2c]
jmp 0x47c555
cmp eax, 8
jne 0x47c559
sub edi, dword [esp + 0x18]
add edi, esi
mov dword [esp + 0x20], edi
xor eax, eax
and dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
cmp ecx, dword [ebx + 0x6c0]
jge 0x47c958
mov eax, dword [ebx + 0x6bc]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov dword [esp + 0x1c], edi
mov eax, dword [edi]
call dword [eax + 0x170]
test al, al
je 0x47c94e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1a4]
test al, al
je 0x47c5b5
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x44]
call dword [eax + 0x2a4]
jmp 0x47c94e
mov eax, dword [edi]
lea ecx, [esp + 0x6c]
inc dword [esp + 0x40]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
mov eax, dword [esp + 0x24]
mov ecx, edi
sub esi, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov dword [esp + 0x38], esi
call dword [eax + 0xcc]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x14], eax
call dword [edx + 0xd4]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x54], ecx
test edx, edx
jg 0x47c61c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf8]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
test ecx, ecx
jg 0x47c62c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov edi, eax
mov edx, dword [esp + 0x14]
cmp eax, edx
cmovg edi, edx
cmovle edx, eax
mov eax, dword [esp + 0x78]
cmp esi, ecx
mov dword [esp + 0x14], edx
mov edx, esi
cmovg edx, ecx
mov dword [esp + 0x4c], edi
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
sub ecx, eax
cmp dword [esp + 0x40], 1
mov dword [esp + 0x18], ecx
jle 0x47c674
sub ecx, dword [ebx + 0x6e4]
mov dword [esp + 0x18], ecx
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push edx
push dword [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x1cc]
cmp dword [esp + 0x10], 0
jne 0x47c6f8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x30]
jne 0x47c6ba
mov eax, esi
sub eax, dword [esp + 0x78]
sub eax, dword [esp + 0x18]
push 0
pop ecx
cmovs eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
cmp dword [esp + 0x10], eax
jge 0x47c6d8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
cmp dword [esp + 0x10], eax
jle 0x47c73c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov dword [esp + 0x10], eax
jmp 0x47c73c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
cmp dword [esp + 0x10], eax
jge 0x47c716
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x47c738
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov ecx, eax
mov dword [esp + 0x10], ecx
sub dword [esp + 0x18], ecx
xor eax, eax
cmp dword [esp + 0xc], eax
cmovg eax, dword [esp + 0xc]
test eax, eax
jne 0x47c757
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x14]
mov ecx, edi
cmovg eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
call dword [eax + 0xf0]
cmp dword [esp + 0xc], eax
jge 0x47c782
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf0]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x228]
mov ecx, dword [ebx + 0x6fc]
cmp eax, 1
jne 0x47c821
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x47c7da
mov edx, dword [ecx]
call dword [edx + 0x170]
test al, al
je 0x47c7da
mov ecx, dword [ebx + 0x6fc]
mov eax, dword [ecx + 0x6bc]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x6c0]
add esi, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x5c]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
sub ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x70]
lea eax, [ecx + edx]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
add eax, ecx
add eax, edx
mov dword [esp + 0x68], eax
jmp 0x47c906
cmp eax, 2
jne 0x47c894
mov esi, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
test ecx, ecx
je 0x47c854
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c854
mov eax, dword [ebx + 0x6fc]
mov esi, dword [eax + 0x6bc]
sub esi, dword [eax + 0x6c0]
add esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
mov eax, esi
sub eax, dword [esp + 0xc]
sub eax, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
sub esi, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], esi
lea esi, [esp + 0x7c]
lea eax, [ecx + edx]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
add eax, ecx
add eax, edx
mov dword [esp + 0x88], eax
jmp 0x47c906
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x47c8bb
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47c8bb
mov eax, dword [ebx + 0x6fc]
sub esi, dword [eax + 0x6c0]
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
lea eax, [esi + ecx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
lea eax, [edx + esi]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x10]
add eax, edx
add eax, esi
lea esi, [esp + 0x8c]
mov dword [esp + 0x98], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0xa0]
mov esi, dword [ebx + 0x6e4]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
lea eax, [esi + edx]
add eax, ecx
add eax, dword [esp + 0x70]
add dword [esp + 0x20], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x70]
add dword [esp + 0x28], eax
lea eax, [esi + edx]
mov esi, dword [esp + 0x38]
add eax, ecx
sub esi, eax
mov ecx, dword [esp + 0x44]
inc ecx
jmp 0x47c565
mov eax, dword [ebx + 0x6e4]
lea esi, [ebp + 8]
imul eax, dword [esp + 0x58]
mov ecx, ebx
mov edx, dword [ebx]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x2a8]
jmp 0x47c99f
mov eax, dword [ebx]
lea esi, [ebp + 8]
push 0
push 0
sub esp, 0x10
mov ecx, ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x2a8]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 0x14