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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
je 0x658283
mov edi, eax
mov ebp, dword [edi]
mov ebx, edx
mov dword [ebx], ebp
mov ebp, dword [edi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edi + 8]
mov dword [ebx + 8], ebp
mov edi, dword [edi + 0xc]
add eax, 0x10
add edx, 0x10
cmp eax, ecx
mov dword [ebx + 0xc], edi
jne 0x65825f
mov eax, dword [esi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esi + 8], edx
jle 0x658877
mov ecx, dword [esp + 0x68]
dec ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x68], 0
jle 0x658402
fild dword [esp + 0x74]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
shl edx, 4
fadd dword [0x746470]
lea edi, [edx + eax + 0x14]
fstp dword [esp + 0x60]
lea eax, [edi - 0x14]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x68]
test ecx, ecx
mov dword [esp + 0x34], edx
jne 0x65831c
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
fld dword [edi - 4]
mov ecx, dword [esp + 0x10]
fsub dword [eax]
push eax
fld dword [edi]
mov eax, dword [esi + 8]
fsub dword [edi - 0x10]
inc ecx
push 1
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x28]
push eax
fld dword [edi + 4]
mov ecx, esi
fsub dword [edi - 0xc]
add edi, 0x10
fstp dword [esp + 0x30]
fld dword [edi - 8]
fsub dword [edi - 0x18]
fstp dword [esp + 0x34]
fdiv dword [esp + 0x6c]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fdiv dword [esp + 0x6c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fdiv dword [esp + 0x6c]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fdiv dword [esp + 0x6c]
fstp dword [esp + 0x34]
call fcn.0065aa50
mov ebp, dword [esp + 0x74]
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x6c], ebx
jle 0x6583ed
fild dword [esp + 0x6c]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x3c]
push ecx
fadd dword [0x746470]
push 1
push edx
mov ecx, esi
fld st(0)
fmul dword [esp + 0x28]
fadd dword [esp + 0x38]
fstp dword [esp + 0x48]
fld st(0)
fmul dword [esp + 0x2c]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x4c]
fld st(0)
fmul dword [esp + 0x30]
fadd dword [esp + 0x40]
fstp dword [esp + 0x50]
fmul dword [esp + 0x34]
fadd dword [esp + 0x44]
fstp dword [esp + 0x54]
call fcn.0065aa50
inc ebx
cmp ebx, ebp
mov dword [esp + 0x6c], ebx
jl 0x658392
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x6582d7
mov al, byte [esp + 0x70]
test al, al
je 0x6586b6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
mov eax, ecx
shl eax, 4
add eax, edx
mov edx, eax
mov edi, dword [edx]
mov dword [esp + 0x2c], edi
mov edi, dword [edx + 4]
push eax
mov eax, dword [esi + 8]
inc ecx
mov dword [esp + 0x34], edi
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
push 1
mov dword [esp + 0x18], ecx
push eax
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
call fcn.0065aa50
fld dword [esp + 0x4c]
fsub dword [esp + 0x2c]
mov eax, dword [esp + 0x74]
test eax, eax
fld dword [esp + 0x50]
fsub dword [esp + 0x30]
mov dword [esp + 0x6c], 0
fstp dword [esp + 0x20]
fld dword [esp + 0x54]
fsub dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esp + 0x58]
fsub dword [esp + 0x38]
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
fadd dword [0x746470]
fstp dword [esp + 0x60]
fdiv dword [esp + 0x60]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fdiv dword [esp + 0x60]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fdiv dword [esp + 0x60]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fdiv dword [esp + 0x60]
fstp dword [esp + 0x28]
jle 0x65886d
fild dword [esp + 0x6c]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, edi
fadd dword [0x746470]
sar ecx, 4
cmp ecx, 1
fld st(0)
fmul dword [esp + 0x1c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x3c]
fld st(0)
fmul dword [esp + 0x20]
fadd dword [esp + 0x30]
fstp dword [esp + 0x40]
fld st(0)
fmul dword [esp + 0x24]
fadd dword [esp + 0x34]
fstp dword [esp + 0x44]
fmul dword [esp + 0x28]
fadd dword [esp + 0x38]
fstp dword [esp + 0x48]
jae 0x6585c5
mov ecx, esi
call fcn.0065a160
cmp eax, 1
jbe 0x658532
mov ecx, esi
call fcn.0065a160
mov ebx, eax
jmp 0x658537
mov ebx, 1
mov ecx, esi
call fcn.0065a160
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x658548
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 4]
add esp, 4
mov ebx, eax
push ebx
push edi
push edx
mov ecx, esi
call fcn.0065afa0
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
mov ecx, esi
mov dword [esp + 0x6c], eax
call fcn.0065aff0
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 8]
add edx, 0x10
push edx
push eax
push edi
mov ecx, esi
call fcn.0065afa0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.0058d230
mov eax, dword [esi + 4]
push eax
call fcn.00727530
shl ebp, 4
add ebp, ebx
add esp, 4
mov ecx, esi
mov dword [esi + 0xc], ebp
call fcn.0065a160
inc eax
shl eax, 4
add eax, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
jmp 0x65869c
mov eax, edi
sub eax, edi
sar eax, 4
cmp eax, 1
jae 0x65862e
lea ecx, [edi + 0x10]
push ecx
push edi
push edi
mov ecx, esi
call fcn.0065afa0
mov eax, dword [esi + 8]
mov ecx, eax
lea edx, [esp + 0x3c]
push edx
sub ecx, edi
sar ecx, 4
mov edx, 1
sub edx, ecx
push edx
push eax
mov ecx, esi
call fcn.0065aff0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x658698
mov edx, dword [esp + 0x3c]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x48]
add edi, 0x10
cmp edi, eax
mov dword [ecx + 0xc], edx
jne 0x658608
jmp 0x658698
push edi
lea eax, [edi - 0x10]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x6c], eax
call fcn.0065afa0
mov ecx, dword [esi + 8]
lea eax, [ecx - 0x10]
cmp edi, eax
je 0x65866d
sub eax, 0x10
sub ecx, 0x10
cmp eax, edi
mov edx, eax
mov ebp, dword [edx]
mov ebx, ecx
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ebx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [ebx + 0xc], edx
jne 0x658649
lea eax, [edi + 0x10]
cmp edi, eax
je 0x658698
mov edx, dword [esp + 0x3c]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x48]
add edi, 0x10
cmp edi, eax
mov dword [ecx + 0xc], edx
jne 0x658674
add dword [esi + 8], 0x10
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
inc eax
cmp eax, ecx
mov dword [esp + 0x6c], eax
jl 0x6584c7
jmp 0x65886d
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esi + 0xc]
mov ebp, eax
shl ebp, 4
add ebp, ebx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
sub ecx, eax
sar ecx, 4
cmp ecx, 1
mov edi, eax
jae 0x658798
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x6586fe
sub eax, ecx
sar eax, 4
cmp eax, 1
jbe 0x6586fe
mov ecx, esi
call fcn.0065a160
mov dword [esp + 0x60], eax
jmp 0x658706
mov dword [esp + 0x60], 1
mov ecx, esi
call fcn.0065a160
mov ebx, eax
add ebx, dword [esp + 0x60]
mov eax, ebx
jns 0x658719
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 4]
add esp, 4
push eax
push edi
push edx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.0065afa0
push ebp
push 1
push eax
mov ecx, esi
mov dword [esp + 0x6c], eax
call fcn.0065aff0
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 8]
add eax, 0x10
push eax
push ecx
push edi
mov ecx, esi
call fcn.0065afa0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.0058d230
mov ecx, dword [esi + 4]
push ecx
call fcn.00727530
mov edi, dword [esp + 0x70]
shl ebx, 4
add ebx, edi
add esp, 4
mov ecx, esi
mov dword [esi + 0xc], ebx
call fcn.0065a160
inc eax
shl eax, 4
add eax, edi
mov dword [esi + 8], eax
mov dword [esi + 4], edi
jmp 0x65886d
mov ecx, eax
sub ecx, edi
sar ecx, 4
cmp ecx, 1
jae 0x6587fa
lea edx, [edi + 0x10]
push edx
push eax
push edi
mov ecx, esi
call fcn.0065afa0
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, edi
sar ecx, 4
push ebp
mov edx, 1
sub edx, ecx
push edx
push eax
mov ecx, esi
call fcn.0065aff0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x658869
mov ecx, ebp
mov ebx, dword [ecx]
mov edx, edi
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
add edi, 0x10
cmp edi, eax
mov dword [edx + 0xc], ecx
jne 0x6587d7
jmp 0x658869
push eax
lea ecx, [eax - 0x10]
push eax
mov dword [esp + 0x68], ecx
push ecx
mov ecx, esi
call fcn.0065afa0
mov ecx, dword [esi + 8]
lea eax, [ecx - 0x10]
cmp edi, eax
je 0x658841
jmp 0x65881b
mov ecx, dword [esp + 0x60]
sub eax, 0x10
sub ecx, 0x10
cmp eax, edi
mov edx, eax
mov ebx, dword [edx]
mov dword [esp + 0x60], ecx
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
jne 0x658817
lea eax, [edi + 0x10]
cmp edi, eax
je 0x658869
mov ecx, ebp
mov ebx, dword [ecx]
mov edx, edi
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
add edi, 0x10
cmp edi, eax
mov dword [edx + 0xc], ecx
jne 0x658848
add dword [esi + 8], 0x10
dec dword [esp + 0x18]
jne 0x6582a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x18