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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x8c
and esp, 0xfffffff8
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0xc]
je 0x48310e
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x18], eax
mov edx, dword [esi + 4]
test edx, edx
je 0x483100
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
cmp eax, dword [esp + 0x14]
jb 0x4830b0
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
shl dword [esp + 8], 4
add dword [esp + 8], edx
cmp edx, dword [esp + 8]
jae 0x4830ef
nop
mov ecx, dword [esp]
add dword [esp], 0x10
mov eax, dword [esp + 0xc]
add dword [esp + 0xc], 0x10
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [esp]
cmp eax, dword [esp + 8]
jb 0x4830c0
mov eax, dword [esi + 4]
test eax, eax
je 0x483100
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, dword [edi + 8]
jb 0x48311f
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x1c]
dec ecx
shl ecx, 4
add ecx, dword [edi + 4]
cmp dword [edi + 8], 0
ja 0x483137
mov dword [edi + 8], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x54]
push edx
mov eax, dword [edi + 4]
push eax
push ecx
call fcn.00482f80
add esp, 0x18
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x4832f5
cmp dword [esp + 0x10], edx
jb 0x483171
mov eax, dword [esp + 4]
inc eax
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
add ecx, ebx
mov eax, dword [esp + 4]
inc eax
cdq
idiv dword [esp + 0x1c]
cmp edx, dword [edi + 8]
jb 0x48318b
mov eax, edx
inc eax
mov dword [edi + 8], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x74]
push eax
shl edx, 4
add edx, dword [edi + 4]
push edx
push ecx
call fcn.00482f80
fldz
fldz
fldz
fldz
add esp, 0x18
fld qword [esp + 0x48]
fstp st(4)
fld qword [esp + 0x50]
fstp st(3)
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
fld qword [esp + 0x68]
fstp st(2)
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fld qword [esp + 0x60]
fsub st(3)
fstp qword [esp + 0x30]
fld qword [esp + 0x78]
fsub qword [esp + 0x68]
fmul qword [esp + 0x30]
fld qword [esp + 0x58]
fsub qword [esp + 0x48]
fld qword [esp + 0x80]
fsub qword [esp + 0x20]
fstp qword [esp + 0x28]
fmul qword [esp + 0x28]
fsubrp st(1)
fstp st(1)
fld qword [0x4ce5f8]
fcomp st(1)
fnstsw ax
and ah, 0x44
cmp ah, 0x40
jne 0x483247
fld qword [0x4ce600]
fstp st(1)
fld st(3)
fsub st(2)
fmul qword [esp + 0x28]
fld st(3)
fsub qword [esp + 0x20]
fld qword [esp + 0x38]
fsub st(4)
fmulp st(1)
fsubrp st(1)
fdiv st(1)
fstp st(2)
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jb 0x483274
mov eax, dword [esp + 4]
inc eax
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
fld qword [esp + 0x40]
fsub st(4)
fmul st(2)
fadd st(4)
fstp qword [ecx + ebx]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jb 0x483295
mov eax, dword [esp + 4]
inc eax
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
fld st(1)
fmul qword [esp + 0x30]
fadd st(3)
fstp qword [edx + ebx + 8]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
add ebx, 0x10
inc dword [esp + 4]
fcompp
fcompp
mov edx, dword [edi + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x483163
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret