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

Disassembly:
sub esp, 0x74
fld dword [0x672afc]
fsub dword [esp + 0x7c]
fstp dword [esp + 0x34]
fld dword [esp + 0x78]
fld qword [0x672b30]
call fcn.00628f0a
fstp dword [esp + 4]
fld dword [esp + 0x78]
sub esp, 8
fstp qword [esp]
call fcn.00624090
fstp dword [esp + 0x30]
add esp, 8
fld dword [esp + 0x28]
fistp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov cx, word [edi + 0x22]
cmp ax, cx
jl 0x4d587b
lea eax, [ecx - 1]
movsx edx, ax
mov dword [esp + 0x28], edx
mov dword [esp + 4], 0x3f800000
fild dword [esp + 0x28]
fstp dword [esp + 0x78]
cmp word [edi + 0x20], 1
jne 0x4d5c32
push ebx
mov bx, word [edi + 0x3a]
and bx, 1
je 0x4d58ac
mov dl, byte [0x6894b4]
test dl, dl
jne 0x4d58a5
mov edx, dword [edi + 0x88]
test edx, edx
jne 0x4d58ac
mov byte [esp + 7], 1
jmp 0x4d58b1
mov byte [esp + 7], 0
movsx edx, ax
movsx eax, cx
dec eax
cmp edx, eax
mov dword [esp + 0x30], edx
jne 0x4d58c4
xor ecx, ecx
jmp 0x4d58c7
lea ecx, [edx + 1]
test bx, bx
je 0x4d58d9
mov al, byte [0x6894b4]
test al, al
je 0x4d58d9
mov al, 1
jmp 0x4d58db
xor al, al
test al, al
push ebp
mov ebp, dword [edi + 0xac]
push esi
mov esi, ebp
je 0x4d58f1
mov eax, dword [edi + 0x88]
jmp 0x4d58f8
movsx eax, word [edi + 0x24]
imul eax, edx
add esi, eax
xor edx, edx
cmp bx, dx
mov dword [esp + 0x18], esi
je 0x4d5912
mov al, byte [0x6894b4]
test al, al
je 0x4d5912
mov al, 1
jmp 0x4d5914
xor al, al
test al, al
je 0x4d5920
mov eax, dword [edi + 0x88]
jmp 0x4d592a
movsx eax, word [edi + 0x24]
movsx ecx, cx
imul eax, ecx
add ebp, eax
xor ebx, ebx
cmp word [edi + 0x2c], dx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
jle 0x4d5c2f
jmp 0x4d5950
mov eax, dword [esp + 0x8c]
movsx edx, bx
shl edx, 5
add edx, eax
test bl, 0x1f
mov dword [esp + 0x14], edx
jne 0x4d598a
mov ax, bx
sar ax, 5
movsx eax, ax
mov ecx, dword [edi + eax*4 + 0x5c]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + eax*4 + 0x6c]
mov eax, dword [edi + eax*4 + 0x7c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
test byte [esp + 0x20], 1
je 0x4d5ad1
mov al, byte [esp + 0xf]
test al, al
je 0x4d59c8
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
push ebx
push edx
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.004d6ba0
mov eax, dword [esp + 0x2c]
add esp, 0x10
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4d5aa1
movsx eax, word [esi]
movsx ecx, word [esi + 2]
movsx edx, word [esi + 4]
mov dword [esp + 0x18], eax
movsx eax, word [esi + 6]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
movsx ecx, word [ebp]
fmul dword [0x672c08]
mov dword [esp + 0x3c], ecx
fstp dword [esp + 0x70]
movsx ecx, word [ebp + 6]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul dword [0x672c08]
movsx edx, word [ebp + 2]
fstp dword [esp + 0x74]
add esi, 8
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
movsx eax, word [ebp + 4]
fmul dword [0x672c08]
add ebp, 8
fstp dword [esp + 0x78]
fild dword [esp + 0x18]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x50]
fmul dword [0x672c08]
fstp dword [esp + 0x7c]
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
push edx
fmul dword [0x672c08]
lea edx, [esp + 0x74]
fstp dword [esp + 0x64]
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
fmul dword [0x672c08]
fstp dword [esp + 0x68]
fild dword [esp + 0x40]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x64]
fmul dword [0x672c08]
fstp dword [esp + 0x6c]
fild dword [esp + 0x40]
fmul dword [0x672c08]
fstp dword [esp + 0x70]
call fcn.004cdd00
add esp, 4
mov ecx, esi
call fcn.004cdb60
mov eax, dword [esp + 0x88]
mov edx, dword [0x696738]
lea esi, [esp + 0x50]
push eax
mov ecx, esi
call fcn.004cdd00
add esp, 4
call fcn.004cdb60
mov eax, dword [esp + 0x14]
mov edx, eax
call fcn.004cdc30
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x28]
shr ecx, 1
test al, 1
mov dword [esp + 0x20], ecx
je 0x4d5b98
mov al, byte [esp + 0xf]
test al, al
je 0x4d5b1b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x44]
push ecx
push ebx
push edx
push eax
mov ecx, edi
call fcn.004d6d30
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
add esp, 0x10
inc eax
mov dword [esp + 0x24], eax
jmp 0x4d5b65
fld dword [0x672afc]
mov eax, esi
fsub dword [esp + 0x10]
mov ecx, ebp
add esi, 0xc
mov dword [esp + 0x18], esi
fld st(0)
add ebp, 0xc
fmul dword [eax]
fld dword [esp + 0x10]
fmul dword [ecx]
faddp st(1)
fstp dword [esp + 0x44]
fld st(0)
fmul dword [eax + 4]
fld dword [esp + 0x10]
fmul dword [ecx + 4]
faddp st(1)
fstp dword [esp + 0x48]
fmul dword [eax + 8]
fld dword [esp + 0x10]
fmul dword [ecx + 8]
faddp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fmul dword [esp + 0x88]
fadd dword [edx + 0x10]
fstp dword [edx + 0x10]
fld dword [esp + 0x48]
fmul dword [esp + 0x88]
fadd dword [edx + 0x14]
fstp dword [edx + 0x14]
fld dword [esp + 0x4c]
fmul dword [esp + 0x88]
fadd dword [edx + 0x18]
fstp dword [edx + 0x18]
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x30]
shr ecx, 1
test al, 1
mov dword [esp + 0x28], ecx
je 0x4d5c1a
mov al, byte [esp + 0xf]
test al, al
je 0x4d5bdc
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.004d6ec0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add esp, 8
inc eax
mov dword [esp + 0x2c], eax
jmp 0x4d5c05
fld dword [esi]
add esi, 4
fld dword [ebp]
mov dword [esp + 0x18], esi
fld dword [0x672afc]
add ebp, 4
fsub dword [esp + 0x10]
fmul st(2)
fxch st(1)
fmul dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x34]
fmul dword [esp + 0x88]
fadd dword [esp + 0x40]
fmul dword [edx + 0x1c]
fstp dword [edx + 0x1c]
mov edx, dword [esp + 0x30]
shr edx, 1
inc ebx
cmp bx, word [edi + 0x2c]
mov dword [esp + 0x30], edx
jl 0x4d5950
pop esi
pop ebp
pop ebx
add esp, 0x74
ret