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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [0x830478]
push edi
mov ecx, dword [esi + 0x88]
mov edi, dword [0x830474]
sub edi, ebp
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
shl eax, 2
cmp edi, eax
jbe 0x5628dd
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0x8c]
push edx
mov ebp, dword [ecx + 0xc0]
push ebp
call fcn.005efb20
mov ecx, eax
mov eax, ebp
xor edx, edx
add esp, 8
div ecx
mov ecx, dword [esi + 0x88]
mov ebp, ecx
imul ebp, eax
cmp ebp, 1
jbe 0x5628d8
mov eax, edi
xor edx, edx
div ebp
mov edi, edx
jmp 0x5628dd
mov edi, 1
mov ebx, dword [esi + 0xb4]
mov dword [esp + 0x18], edi
add ebx, edi
lea edx, [esp + 0x48]
mov dword [esi + 0xb4], ebx
mov eax, ebx
xor ebx, ebx
push edx
mov dword [esp + 0x20], ebx
fild qword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
lea eax, [esi + 0xb8]
fstp dword [esp + 0x18]
fild qword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x6c]
fdiv dword [esp + 0x18]
push ecx
push eax
fsubr dword [0x7cd794]
fstp dword [esp + 0x1c]
fild qword [esp + 0x24]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x24]
call fcn.005f7190
fld dword [esi + 0xb0]
fcomp dword [0x7cd7b4]
mov ebp, dword [esp + 0x78]
add esp, 0xc
fnstsw ax
test ah, 0x40
jne 0x5629c5
fld dword [ebp]
fsub dword [esi + 0xc8]
fld dword [ebp + 4]
fsub dword [esi + 0xcc]
fstp dword [esp + 0x24]
fld dword [ebp + 8]
fsub dword [esi + 0xd0]
fstp dword [esp + 0x28]
fld dword [esi + 0xb0]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x6c]
fmul dword [esp + 0x6c]
fld dword [esp + 0x24]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fmul dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
mov dword [0x8360bc], edx
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
fstp dword [0x8360b8]
mov dword [0x8360c0], eax
jmp 0x5629e3
mov dword [0x8360b8], 0
mov dword [0x8360bc], 0
mov dword [0x8360c0], 0
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x88]
cmp eax, ecx
jbe 0x562b3f
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
sub eax, ecx
lea ecx, [esp + 0x48]
mov dword [esi + 0xb4], eax
mov eax, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esi + 0xb8]
push eax
push ecx
call fcn.005f7230
fld dword [ebp]
fsub dword [esi + 0xc8]
mov edx, dword [eax]
mov edi, dword [0x830474]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 4]
fmul dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x70], edx
mov eax, dword [eax + 0xc]
fadd dword [esi + 0xc8]
add esp, 0x14
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x8c]
fld dword [ebp + 4]
fsub dword [esi + 0xcc]
fmul dword [esp + 0x10]
fadd dword [esi + 0xcc]
fstp dword [esp + 0x34]
fld dword [ebp + 8]
fsub dword [esi + 0xd0]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov cl, byte [esi + 0x94]
fmul dword [esp + 0x10]
fadd dword [esi + 0xd0]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fstp dword [esp + 0x3c]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xb4]
sub edi, edx
test cl, cl
je 0x562ac9
mov eax, dword [esi + 0x90]
mov byte [esi + 0x94], 0
mov ecx, dword [esi + 0xd8]
cmp ecx, ebx
jle 0x562af8
cmp eax, ecx
jbe 0x562ae1
mov eax, ecx
mov dword [esi + 0xd8], ebx
jmp 0x562ae9
sub ecx, eax
mov dword [esi + 0xd8], ecx
cmp dword [esi + 0xd8], ebx
jg 0x562af8
mov byte [esi + 0xe0], 1
cmp eax, ebx
jbe 0x562b21
mov ebx, eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push eax
push ecx
mov ecx, dword [esi + 0xf0]
push edi
call fcn.0055ea50
push eax
mov ecx, esi
call fcn.00562b50
dec ebx
jne 0x562afe
xor ebx, ebx
mov al, byte [esi + 0xe0]
test al, al
jne 0x562b3f
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x88]
cmp eax, ecx
ja 0x5629f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8