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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x5ef6e8]
push 2
push 0x14
mov dword [esp + 0x40], esi
call fcn.004c0600
fild dword [esp + 0xb4]
mov ecx, dword [0x5ef6e8]
push 0
fstp dword [esp + 0x34]
push 1
fild dword [esp + 0xb4]
fmul dword [0x5999e8]
fsubr dword [esp + 0x38]
fstp dword [esp + 0x3c]
fild dword [esp + 0xc0]
fstp dword [esp + 0x2c]
fild dword [esp + 0xb8]
fmul dword [0x5999e8]
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x44]
call fcn.004bff90
mov ecx, dword [0x5ef6e8]
push 0x142
call fcn.004c0010
mov ecx, dword [0x5ef6e8]
push 2
push 2
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 0
push 3
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 4
push 1
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 5
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 0
push 6
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 4
push 4
push 0
call fcn.004bffd0
xor ebp, ebp
jmp 0x5846c0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x584cdc
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x584cdc
mov eax, ecx
mov ecx, dword [eax + ebp*4]
fld dword [ecx + 0x20]
lea eax, [eax + ebp*4]
fadd dword [0x5997ac]
mov edx, ecx
mov esi, dword [0x5ef6e8]
fmul dword [esp + 0x34]
fsubr dword [esp + 0x30]
fstp dword [esp + 0x28]
fld dword [edx + 0x20]
mov edx, dword [ecx + 0x24]
fadd dword [0x5997ac]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x28]
fmul dword [esp + 0x3c]
fsubr dword [esp + 0x24]
fstp dword [esp + 0x2c]
fld dword [esp + 0xa8]
fmul dword [edx]
mov edx, dword [ecx + 0x28]
fstp dword [esp + 0x10]
fld dword [esp + 0xa8]
fmul dword [edx + 4]
mov edx, dword [ecx + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0xa8]
fmul dword [edx + 8]
mov edx, dword [ecx + 0x28]
fstp dword [esp + 0x18]
fld dword [esp + 0xa8]
fmul dword [edx + 0xc]
fstp dword [esp + 0x1c]
call fcn.004cf8a0
mov ecx, eax
call fcn.004c41e0
push eax
push 0
mov ecx, esi
call fcn.004bff90
fld dword [esp + 0x28]
fsub dword [esp + 0x20]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], 0
fst dword [esp + 0x44]
fld dword [esp + 0x2c]
fsub dword [esp + 0x20]
fst dword [esp + 0x40]
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x5847c1
mov ebx, 0xff
jmp 0x5847ed
fld dword [esp + 0x10]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x5847d6
xor ebx, ebx
jmp 0x5847ed
fld dword [esp + 0x10]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov ebx, eax
fld dword [esp + 0x14]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584805
mov edi, 0xff
jmp 0x584831
fld dword [esp + 0x14]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x58481a
xor edi, edi
jmp 0x584831
fld dword [esp + 0x14]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov edi, eax
fld dword [esp + 0x18]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584849
mov esi, 0xff
jmp 0x584875
fld dword [esp + 0x18]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x58485e
xor esi, esi
jmp 0x584875
fld dword [esp + 0x18]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov esi, eax
fld dword [esp + 0x1c]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x58488d
mov eax, 0xff
jmp 0x5848b7
fld dword [esp + 0x1c]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x5848a2
xor eax, eax
jmp 0x5848b7
fld dword [esp + 0x1c]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
shl eax, 8
fstp dword [esp + 0x5c]
fld dword [esp + 0x20]
or eax, ebx
fadd dword [esp + 0x2c]
shl eax, 8
or eax, edi
shl eax, 8
fst dword [esp + 0x60]
or eax, esi
fld dword [esp + 0x10]
mov dword [esp + 0x50], eax
fcomp dword [0x5997ac]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x64], 0
fnstsw ax
test ah, 1
jne 0x58490a
mov ebx, 0xff
jmp 0x584936
fld dword [esp + 0x10]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x58491f
xor ebx, ebx
jmp 0x584936
fld dword [esp + 0x10]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov ebx, eax
fld dword [esp + 0x14]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x58494e
mov edi, 0xff
jmp 0x58497a
fld dword [esp + 0x14]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584963
xor edi, edi
jmp 0x58497a
fld dword [esp + 0x14]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov edi, eax
fld dword [esp + 0x18]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584992
mov esi, 0xff
jmp 0x5849be
fld dword [esp + 0x18]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x5849a7
xor esi, esi
jmp 0x5849be
fld dword [esp + 0x18]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov esi, eax
fld dword [esp + 0x1c]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x5849d6
mov eax, 0xff
jmp 0x584a00
fld dword [esp + 0x1c]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x5849eb
xor eax, eax
jmp 0x584a00
fld dword [esp + 0x1c]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
fld dword [esp + 0x20]
shl eax, 8
fadd dword [esp + 0x28]
or eax, ebx
shl eax, 8
or eax, edi
shl eax, 8
fst dword [esp + 0x74]
fld dword [esp + 0x10]
or eax, esi
fcomp dword [0x5997ac]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], 0x3f800000
fnstsw ax
mov dword [esp + 0x88], 0
mov dword [esp + 0x7c], 0
test ah, 1
jne 0x584a5d
mov ebx, 0xff
jmp 0x584a89
fld dword [esp + 0x10]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584a72
xor ebx, ebx
jmp 0x584a89
fld dword [esp + 0x10]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov ebx, eax
fld dword [esp + 0x14]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584aa1
mov edi, 0xff
jmp 0x584acd
fld dword [esp + 0x14]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584ab6
xor edi, edi
jmp 0x584acd
fld dword [esp + 0x14]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov edi, eax
fld dword [esp + 0x18]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584ae5
mov esi, 0xff
jmp 0x584b11
fld dword [esp + 0x18]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584afa
xor esi, esi
jmp 0x584b11
fld dword [esp + 0x18]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov esi, eax
fld dword [esp + 0x1c]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584b29
mov eax, 0xff
jmp 0x584b53
fld dword [esp + 0x1c]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584b3e
xor eax, eax
jmp 0x584b53
fld dword [esp + 0x1c]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
shl eax, 8
fstp dword [esp + 0x8c]
or eax, ebx
shl eax, 8
fstp dword [esp + 0x90]
fld dword [esp + 0x10]
or eax, edi
fcomp dword [0x5997ac]
shl eax, 8
or eax, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x9c], 0x3f800000
fnstsw ax
mov dword [esp + 0xa0], 0x3f800000
mov dword [esp + 0x94], 0
test ah, 1
jne 0x584bb0
mov ebx, 0xff
jmp 0x584bdc
fld dword [esp + 0x10]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584bc5
xor ebx, ebx
jmp 0x584bdc
fld dword [esp + 0x10]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov ebx, eax
fld dword [esp + 0x14]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584bf4
mov edi, 0xff
jmp 0x584c20
fld dword [esp + 0x14]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584c09
xor edi, edi
jmp 0x584c20
fld dword [esp + 0x14]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov edi, eax
fld dword [esp + 0x18]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584c38
mov esi, 0xff
jmp 0x584c64
fld dword [esp + 0x18]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584c4d
xor esi, esi
jmp 0x584c64
fld dword [esp + 0x18]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov esi, eax
fld dword [esp + 0x1c]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x584c7c
mov eax, 0xff
jmp 0x584ca6
fld dword [esp + 0x1c]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x584c91
xor eax, eax
jmp 0x584ca6
fld dword [esp + 0x1c]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
shl eax, 8
or eax, ebx
shl eax, 8
push 0x18
or eax, edi
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [0x5ef6e8]
shl eax, 8
push 2
or eax, esi
push 5
mov dword [esp + 0xa8], eax
call fcn.004c0190
mov esi, dword [esp + 0x38]
inc ebp
jmp 0x5846c0
mov ecx, dword [0x5ef6e8]
push 0x14
call fcn.004c0640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14