Function at 0x47991e
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 + 0x40], 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 0x479997
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 edi, dword [ebp + 8]
mov ecx, dword [esp + 0x78]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, dword [esp + 0x74]
add dword [ebp + 0xc], ecx
sub eax, dword [esp + 0x80]
sub ebx, dword [esp + 0x7c]
mov ecx, dword [esi + 0x6f8]
mov dword [esp + 0x28], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
mov dword [esp + 0x24], eax
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x4799f0
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x4799f0
mov ecx, dword [esi + 0x6f8]
mov eax, dword [ecx]
call dword [eax + 0xcc]
sub ebx, eax
mov dword [ebp + 0x10], ebx
mov ecx, dword [esi + 0x6fc]
test ecx, ecx
je 0x479a23
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x479a23
mov ecx, dword [esi + 0x6fc]
mov eax, dword [ecx]
call dword [eax + 0xd4]
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov dword [esp + 0x24], ecx
mov dword [ebp + 0x14], ecx
jmp 0x479a27
mov ecx, dword [esp + 0x24]
lea edx, [esi + 0x6bc]
test edx, edx
je 0x47a1ea
cmp dword [edx + 4], 0
je 0x47a1ea
sub ebx, edi
mov edi, ecx
sub edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x6f8]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], edi
test ecx, ecx
je 0x479a7c
mov eax, dword [ecx]
call dword [eax + 0x170]
lea edx, [esi + 0x6bc]
test al, al
je 0x479a7c
mov eax, dword [esi + 0x6f8]
mov eax, dword [eax + 0x6bc]
add edi, eax
mov dword [esp + 0x38], edi
xor eax, eax
mov dword [esp + 0x5c], 0x64
xor edi, edi
mov dword [esp + 0x48], eax
xor ecx, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
cmp ecx, dword [esi + 0x6c0]
jge 0x479c8e
mov eax, dword [edx]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x170]
test al, al
je 0x479c7a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1a4]
test al, al
jne 0x479c7a
mov eax, dword [edi]
lea ecx, [esp + 0x74]
mov esi, dword [esp + 0x38]
push ecx
mov ecx, edi
call dword [eax + 0xbc]
mov eax, dword [edi]
mov ecx, edi
sub esi, dword [esp + 0x80]
sub esi, dword [esp + 0x78]
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 dword [esp + 0x3c], eax
jg 0x479b26
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x479b34
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
cmp ebx, dword [esp + 0x14]
mov ecx, ebx
cmovg ecx, dword [esp + 0x14]
cmp esi, eax
cmovg esi, eax
mov eax, dword [edi]
push esi
push ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x1cc]
cmp dword [esp + 0xc], 0
jne 0x479b91
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe0]
test eax, eax
jle 0x479b83
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe0]
imul eax, ebx
push 0x64
pop ecx
cdq
idiv ecx
mov dword [esp + 0xc], eax
jmp 0x479b87
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x479b91
inc dword [esp + 0x34]
jmp 0x479bcd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf0]
cmp dword [esp + 0xc], eax
jge 0x479baf
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]
cmp dword [esp + 0xc], eax
jle 0x479bcd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf8]
mov dword [esp + 0xc], 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 + 8]
mov eax, dword [edi]
call dword [eax + 0xbc]
mov ecx, dword [esi]
add ecx, dword [eax]
xor eax, eax
add ecx, dword [esp + 0xc]
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 + 0x100]
cmp dword [esp + 0x10], eax
jge 0x479c2d
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 edx, dword [esp + 0x10]
cmp edx, eax
jle 0x479c4f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x108]
mov edx, eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
add ecx, edx
mov esi, dword [esp + 0x2c]
add eax, ecx
cmp dword [esp + 0x48], eax
cmovg eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x479c7e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0x6bc]
inc ecx
jmp 0x479a9a
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, dword [esi + 0x6e4]
and dword [esp + 0x30], 0
and dword [esp + 0x3c], 0
mov edi, dword [esp + 0x34]
imul eax, ecx
mov dword [esp + 0x60], ecx
add edx, eax
mov dword [esp + 0x18], edx
test edi, edi
jle 0x479ccc
mov eax, ebx
xor ecx, ecx
sub eax, edx
cdq
idiv edi
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x6fc]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x479cfc
mov eax, dword [ecx]
call dword [eax + 0x170]
test al, al
je 0x479cfc
mov eax, dword [esi + 0x6fc]
sub edi, dword [eax + 0x6c0]
jmp 0x479d30
cmp dword [esp + 0x34], 0
jg 0x479d34
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x228]
cmp eax, 1
jne 0x479d25
mov eax, ebx
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x14]
jmp 0x479d30
cmp eax, 2
mov eax, dword [esi]
lea esi, [ebp + 8]
mov ecx, dword [esp + 0x2c]
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]