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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov dword [esp + 0x3c], 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 fcn.0046fcf9
lea esi, [ebx + 0x1b0]
lea edi, [ebp + 8]
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 + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x40]
test eax, eax
je 0x47824c
lea eax, [esp + 0x74]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x40]
mov ecx, eax
call fcn.00482de7
mov ecx, eax
call fcn.004b5fd9
mov ecx, dword [esp + 0x74]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
add dword [ebp + 8], ecx
add edi, dword [esp + 0x78]
sub eax, dword [esp + 0x7c]
sub ebx, dword [esp + 0x80]
mov ecx, dword [esi + 0x6f8]
mov dword [esp + 0x24], edi
mov dword [ebp + 0xc], edi
mov dword [esp + 0x34], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ebx
test ecx, ecx
je 0x4782ad
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x4782ad
mov ecx, dword [esi + 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 [esi + 0x6fc]
test ecx, ecx
je 0x4782d6
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x4782d6
mov ecx, dword [esi + 0x6fc]
mov eax, dword [ecx]
call dword [eax + 0xd4]
sub ebx, eax
mov dword [ebp + 0x14], ebx
lea eax, [esi + 0x6bc]
test eax, eax
je 0x478aaf
cmp dword [eax + 4], 0
je 0x478aaf
mov eax, dword [esp + 0x34]
sub ebx, edi
sub eax, dword [ebp + 8]
mov ecx, dword [esi + 0x6fc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
test ecx, ecx
je 0x478325
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x478325
mov eax, dword [esi + 0x6fc]
mov eax, dword [eax + 0x6bc]
add dword [esp + 0x20], eax
mov ecx, dword [esi + 0x6f8]
test ecx, ecx
je 0x47834d
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x47834d
mov eax, dword [esi + 0x6f8]
mov eax, dword [eax + 0x6bc]
add ebx, eax
mov dword [esp + 0x54], ebx
xor eax, eax
mov dword [esp + 0x5c], 0x64
xor edi, edi
mov dword [esp + 0x44], eax
xor ecx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esi + 0x6c0]
jge 0x478560
mov eax, dword [esi + 0x6bc]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x170]
test al, al
je 0x478552
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1a4]
test al, al
jne 0x478552
mov eax, dword [edi]
lea ecx, [esp + 0x74]
mov esi, dword [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x50], esi
call dword [eax + 0xbc]
mov eax, dword [edi]
mov ecx, edi
sub esi, dword [esp + 0x7c]
sub esi, dword [esp + 0x74]
call dword [eax + 0xcc]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x1c], eax
call dword [edx + 0xd4]
cmp dword [esp + 0x1c], 0
mov ecx, eax
mov dword [esp + 0x38], ecx
jg 0x4783fe
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
test ecx, ecx
jg 0x47840e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov ecx, eax
cmp esi, dword [esp + 0x1c]
mov eax, ebx
mov edx, dword [edi]
cmovg esi, dword [esp + 0x1c]
cmp ebx, ecx
cmovg eax, ecx
mov ecx, edi
push eax
push esi
lea eax, [esp + 0x18]
push eax
call dword [edx + 0x1cc]
cmp dword [esp + 0x14], 0
jne 0x47846b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe8]
test eax, eax
jle 0x47845d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe8]
imul eax, ebx
push 0x64
pop ecx
cdq
idiv ecx
mov dword [esp + 0x14], eax
jmp 0x478461
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x47846b
inc dword [esp + 0x30]
jmp 0x4784a7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
cmp dword [esp + 0x14], eax
jge 0x478489
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
cmp dword [esp + 0x14], eax
jle 0x4784a7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
lea ecx, [esp + 0x94]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
lea ecx, [esp + 0x84]
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 + 0x14]
add dword [esp + 0x18], ecx
mov ecx, edi
cmp dword [esp + 0x10], eax
cmovg eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
call dword [eax + 0xf0]
cmp dword [esp + 0x10], eax
jge 0x478508
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf0]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf8]
mov edx, dword [esp + 0x10]
cmp edx, eax
jle 0x47852a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf8]
mov edx, eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
add ecx, edx
mov esi, dword [esp + 0x28]
add eax, ecx
cmp dword [esp + 0x44], eax
cmovg eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
jmp 0x478556
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
inc ecx
jmp 0x47836b
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, dword [esi + 0x6e4]
and dword [esp + 0x2c], 0
and dword [esp + 0x38], 0
mov edi, dword [esp + 0x30]
imul eax, ecx
mov dword [esp + 0x60], ecx
add edx, eax
mov dword [esp + 0x18], edx
test edi, edi
jle 0x47859e
mov eax, ebx
xor ecx, ecx
sub eax, edx
cdq
idiv edi
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x6f8]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], edi
test ecx, ecx
je 0x4785ce
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x4785ce
mov eax, dword [esi + 0x6f8]
sub edi, dword [eax + 0x6c0]
jmp 0x478602
cmp dword [esp + 0x30], 0
jg 0x478606
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x230]
cmp eax, 4
jne 0x4785f7
mov eax, ebx
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0xc]
jmp 0x478602
cmp eax, 8
jne 0x478606
sub edi, dword [esp + 0x18]
add edi, ebx
mov dword [esp + 0x24], edi
xor eax, eax
and dword [esp + 0x58], eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
cmp ecx, dword [esi + 0x6c0]
jge 0x478a80
mov eax, dword [esi + 0x6bc]
mov ebx, dword [eax + ecx*4]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x170]
test al, al
je 0x478a76
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1a4]
test al, al
je 0x47865e
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x40]
call dword [eax + 0x2a4]
jmp 0x478a76
mov eax, dword [ebx]
lea ecx, [esp + 0x74]
inc dword [esp + 0x3c]
push ecx
mov ecx, ebx
call dword [eax + 0xbc]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
sub eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
sub eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx]
call dword [eax + 0xcc]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0xc], eax
call dword [edx + 0xd4]
cmp dword [esp + 0xc], 0
mov ecx, eax
mov dword [esp + 0x48], ecx
jg 0x4786c8
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xf8]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
test ecx, ecx
jg 0x4786d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov edx, eax
mov edi, dword [esp + 0xc]
cmp eax, edi
cmovg edx, edi
cmovle edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x24]
cmovg eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x78]
sub ecx, eax
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x18], ecx
jle 0x478725
sub ecx, dword [esi + 0x6e4]
mov dword [esp + 0x18], ecx
push dword [esp + 0x4c]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x1cc]
cmp dword [esp + 0x14], 0
jne 0x4787e3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
test eax, eax
jle 0x47876d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
imul eax, dword [esp + 0x54]
push 0x64
pop ecx
cdq
idiv ecx
mov dword [esp + 0x14], eax
jmp 0x478771
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4787e3
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x30]
jne 0x4787a5
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x18]
push 0
pop ecx
cmovs eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
cmp dword [esp + 0x14], eax
jge 0x4787c3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
cmp dword [esp + 0x14], eax
jle 0x478827
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
mov dword [esp + 0x14], eax
jmp 0x478827
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
cmp dword [esp + 0x14], eax
jge 0x478801
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x478823
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
mov ecx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
xor eax, eax
cmp dword [esp + 0x10], eax
cmovg eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x478872
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
test eax, eax
jne 0x47886e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe0]
test eax, eax
jle 0x47886e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x20]
imul eax, ecx
cdq
idiv dword [esp + 0x5c]
jmp 0x478876
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x478884
mov eax, ecx
sub eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
cmp eax, dword [esp + 0xc]
mov ecx, ebx
cmovg eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
call dword [eax + 0xf0]
cmp dword [esp + 0x10], eax
jge 0x4788af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xf0]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x228]
mov ecx, dword [esi + 0x6fc]
cmp eax, 1
jne 0x47893b
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x4788ff
mov edx, dword [ecx]
call dword [edx + 0x170]
test al, al
je 0x4788ff
mov ecx, dword [esi + 0x6fc]
mov eax, dword [ecx + 0x6bc]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x6c0]
add dword [esp + 0xc], eax
mov esi, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0x78]
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
sub edx, eax
lea eax, [ecx + edi]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], edx
lea eax, [edx + esi]
mov dword [esp + 0x6c], eax
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x14]
add eax, ecx
add eax, edi
mov dword [esp + 0x70], eax
jmp 0x478a29
cmp eax, 2
jne 0x4789ba
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
test ecx, ecx
je 0x478978
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x478974
mov eax, dword [esi + 0x6fc]
mov edx, dword [eax + 0x6bc]
sub edx, dword [eax + 0x6c0]
add edx, dword [esp + 0x4c]
jmp 0x478978
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
lea esi, [esp + 0x84]
mov eax, edx
sub edx, dword [esp + 0x7c]
sub eax, dword [esp + 0x10]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
lea eax, [ecx + edi]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x8c], edx
add eax, edi
mov dword [esp + 0x90], eax
jmp 0x478a29
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x4789e4
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x4789e4
mov eax, dword [esi + 0x6fc]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + 0x6c0]
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
lea eax, [esi + ecx]
mov dword [esp + 0x94], eax
lea eax, [edx + edi]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
add eax, esi
lea esi, [esp + 0x94]
add eax, ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14]
add eax, edx
add eax, edi
mov dword [esp + 0xa0], eax
mov eax, dword [ebx]
mov ecx, ebx
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 ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov esi, dword [ebx + 0x6e4]
lea eax, [esi + edx]
add eax, ecx
add eax, dword [esp + 0x78]
add dword [esp + 0x24], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x78]
add dword [esp + 0x2c], eax
lea eax, [esi + edx]
add eax, ecx
mov esi, ebx
sub dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x40]
inc ecx
jmp 0x478612
mov eax, dword [esi + 0x6e4]
imul eax, dword [esp + 0x60]
mov edx, dword [esi]
lea esi, [ebp + 8]
mov ecx, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x48]
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 0x478acb
mov eax, dword [esi]
lea esi, [ebp + 8]
mov ecx, dword [esp + 0x28]
push 0
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 + 0x2a8]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 0x14