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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
fld qword [ebp + 0xc]
push ebx
fld qword [0x5f66c8]
push esi
fld st(1)
push edi
fucompp
fnstsw ax
test ah, 0x44
jnp 0x583ab9
fcom qword [0x5f66c8]
fnstsw ax
test ah, 5
jp 0x583aae
fchs
fld qword [0x5f66e0]
fdiv st(1)
fstp qword [ebp + 0xc]
fstp st(0)
fld qword [ebp + 0x14]
fld qword [0x5f66c8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x583ae9
fcom qword [0x5f66c8]
fnstsw ax
test ah, 5
jp 0x583ade
fchs
fld qword [0x5f66e0]
fdiv st(1)
fstp qword [ebp + 0x14]
mov ecx, dword [ecx + 4]
fstp st(0)
test ecx, ecx
mov dword [esp + 0x94], ecx
je 0x5842ba
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5842ba
call fcn.006251ac
test eax, eax
je 0x5842ba
push 0x808
call fcn.0071528c
mov esi, eax
push 0x8080
mov dword [esp + 0xa0], esi
call fcn.0071528c
mov edi, dword [esp + 0x9c]
mov ebx, dword [edi + 4]
push eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x20]
cmp ebx, 8
push esi
sete byte [esp + 0x1f]
call fcn.0057e96c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov esi, dword [eax + 8]
sub ecx, ebx
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0xc]
sub ecx, esi
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0057c5ec
mov edi, dword [esp + 0x40]
mov esi, eax
mov al, byte [ebp + 0x30]
xor ebx, ebx
add esp, 0x1c
sar edi, 2
test al, al
mov al, byte [ebp + 0x2c]
mov dword [esp + 0x38], 0xff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
je 0x583bae
mov ebx, 1
jmp 0x583bc1
test al, 1
je 0x583bb7
mov ebx, 1
test al, 2
je 0x583bbc
inc ebx
test al, 4
je 0x583bc1
inc ebx
mov cl, byte [esp + 0xf]
test cl, cl
je 0x583bce
test al, 8
je 0x583bce
inc ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov al, byte [ebp + 0x24]
test al, al
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x8c], ecx
je 0x583d4f
cmp dword [esp + 0x30], ecx
je 0x583d4f
cmp dword [esp + 0x34], ecx
je 0x583d4f
fld qword [0x5f66c8]
fld qword [ebp + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x583c89
fild dword [esp + 0x30]
sub esp, 8
fst qword [esp + 0x20]
fmul qword [ebp + 0xc]
fst qword [esp + 0x58]
fstp qword [esp]
call fcn.0063305c
fdiv qword [esp + 0x20]
fstp qword [esp + 0x68]
fld qword [esp + 0x58]
fstp qword [esp]
call fcn.0063302c
fdiv qword [esp + 0x20]
add esp, 8
fld qword [ebp + 0xc]
fdiv qword [esp + 0x60]
fld st(1)
fdiv qword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x583c86
fstp st(0)
fld qword [esp + 0x60]
fstp qword [ebp + 0xc]
fld qword [0x5f66c8]
fld qword [ebp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x583cee
fild dword [esp + 0x34]
sub esp, 8
fst qword [esp + 0x20]
fmul qword [ebp + 0x14]
fst qword [esp + 0x58]
fstp qword [esp]
call fcn.0063305c
fdiv qword [esp + 0x20]
fstp qword [esp + 0x68]
fld qword [esp + 0x58]
fstp qword [esp]
call fcn.0063302c
fdiv qword [esp + 0x20]
add esp, 8
fld qword [ebp + 0x14]
fdiv qword [esp + 0x60]
fld st(1)
fdiv qword [ebp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x583ceb
fstp st(0)
fld qword [esp + 0x60]
fstp qword [ebp + 0x14]
fild dword [esp + 0x30]
lea edx, [esp + 0x3c]
mov dword [esp + 0x8c], edx
fmul qword [ebp + 0xc]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fistp dword [esp + 0x24]
fild dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], eax
add eax, 0x1000
fmul qword [ebp + 0x14]
mov dword [esp + 0xa4], eax
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fistp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
add eax, 0x1000
mov dword [esp + 0xa8], eax
xor ecx, ecx
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
jle 0x584286
lea eax, [edi*4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x5c], 0
jle 0x584263
mov al, byte [ebp + 0x24]
test al, al
je 0x583db3
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
fld qword [0x5f66c8]
mov eax, dword [ebp + 0x1c]
test eax, eax
fstp qword [esp + 0x68]
fld qword [0x5f66c8]
fstp qword [esp + 0x70]
fld qword [0x5f66c8]
fstp qword [esp + 0x78]
fld qword [0x5f66c8]
fstp qword [esp + 0x80]
fld qword [0x5f68e8]
fstp qword [esp + 0x18]
fld qword [ebp + 0xc]
fstp qword [esp + 0xc8]
fld qword [ebp + 0x14]
fstp qword [esp + 0xd0]
jle 0x583fcd
fild dword [esp + 0x5c]
mov edi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x1c]
fstp qword [esp + 0xe8]
sub eax, edi
fild dword [esp + 0x4c]
mov dword [esp + 0xe0], eax
mov dword [esp + 0x24], edx
fstp qword [esp + 0x10]
jmp 0x583e3c
mov eax, dword [esp + 0xe0]
fld qword [esp + 0xe8]
fadd qword [eax + edi]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
push ebx
fmul qword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0xa0]
fstp qword [esp + 0x118]
lea edx, [esp + 0xf8]
fld qword [esp + 0x18]
push edx
fadd qword [edi]
lea edx, [esp + 0x11c]
fmul qword [esp + 0xdc]
fstp qword [esp + 0x124]
call fcn.0057eb7c
mov al, byte [ebp + 0x28]
add esp, 0xc
test al, al
je 0x583f26
xor eax, eax
cmp ebx, 4
jl 0x583f05
lea ecx, [ebx - 3]
fld qword [esp + 0x18]
add eax, 4
cmp eax, ecx
fmul qword [esp + eax*8 + 0xd0]
fadd qword [esp + eax*8 + 0x48]
fstp qword [esp + eax*8 + 0x48]
fld qword [esp + 0x18]
fmul qword [esp + eax*8 + 0xd8]
fadd qword [esp + eax*8 + 0x50]
fstp qword [esp + eax*8 + 0x50]
fld qword [esp + 0x18]
fmul qword [esp + eax*8 + 0xe0]
fadd qword [esp + eax*8 + 0x58]
fstp qword [esp + eax*8 + 0x58]
fld qword [esp + 0x18]
fmul qword [esp + eax*8 + 0xe8]
fadd qword [esp + eax*8 + 0x60]
fstp qword [esp + eax*8 + 0x60]
jl 0x583eb2
cmp eax, ebx
jge 0x583f52
lea ecx, [ecx]
fld qword [esp + 0x18]
inc eax
cmp eax, ebx
fmul qword [esp + eax*8 + 0xe8]
fadd qword [esp + eax*8 + 0x60]
fstp qword [esp + eax*8 + 0x60]
jl 0x583f0c
jmp 0x583f52
xor esi, esi
test ebx, ebx
jle 0x583f52
fld qword [esp + esi*8 + 0xf0]
sub esp, 8
fstp qword [esp]
call fcn.00632f9c
fmul qword [esp + 0x20]
add esp, 8
inc esi
cmp esi, ebx
fadd qword [esp + esi*8 + 0x60]
fstp qword [esp + esi*8 + 0x60]
jl 0x583f2c
fld qword [esp + 0xc8]
mov al, byte [ebp + 0x24]
test al, al
fadd st(0), st(0)
fstp qword [esp + 0xc8]
fld qword [esp + 0xd0]
fadd st(0), st(0)
fstp qword [esp + 0xd0]
fld qword [esp + 0x18]
fmul qword [0x5f66e8]
fstp qword [esp + 0x18]
je 0x583fbb
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
lea ecx, [eax + eax]
lea eax, [edx + edx - 0x1000]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
lea edx, [ecx + ecx]
lea ecx, [eax + eax - 0x1000]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x24]
add edi, 8
dec eax
mov dword [esp + 0x24], eax
jne 0x583e3c
mov cl, byte [ebp + 0x28]
xor eax, eax
test cl, cl
mov cl, byte [ebp + 0x30]
jne 0x5840d6
test cl, cl
je 0x58401a
fld qword [esp + 0x68]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xbc]
mov eax, dword [esp + 0xbc]
mov dl, byte [ebp + 0x2c]
mov esi, eax
mov edi, eax
mov ecx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov eax, 1
jmp 0x58409f
mov dl, byte [ebp + 0x2c]
test dl, 1
je 0x584047
fld qword [esp + 0x68]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x2c], ecx
mov eax, 1
jmp 0x58404b
mov ecx, dword [esp + 0x2c]
test dl, 2
je 0x584071
fld qword [esp + eax*8 + 0x68]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xc4]
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x28], edi
inc eax
jmp 0x584075
mov edi, dword [esp + 0x28]
test dl, 4
je 0x58409b
fld qword [esp + eax*8 + 0x68]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xb0]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x20], esi
inc eax
jmp 0x58409f
mov esi, dword [esp + 0x20]
cmp byte [esp + 0xf], 0
je 0x5841e4
test dl, 8
je 0x5841e4
fld qword [esp + eax*8 + 0x68]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x38], eax
jmp 0x5841e8
test cl, cl
je 0x584119
fld qword [esp + 0x68]
fadd qword [0x5f68e8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xc0]
mov esi, dword [esp + 0xc0]
mov dl, byte [ebp + 0x2c]
sar esi, 1
mov edi, esi
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov eax, 1
jmp 0x5841b6
mov dl, byte [ebp + 0x2c]
test dl, 1
je 0x58414e
fld qword [esp + 0x68]
fadd qword [0x5f68e8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xe4]
mov ecx, dword [esp + 0xe4]
sar ecx, 1
mov dword [esp + 0x2c], ecx
mov eax, 1
jmp 0x584152
mov ecx, dword [esp + 0x2c]
test dl, 2
je 0x584180
fld qword [esp + eax*8 + 0x68]
fadd qword [0x5f68e8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xb4]
mov edi, dword [esp + 0xb4]
sar edi, 1
mov dword [esp + 0x28], edi
inc eax
jmp 0x584184
mov edi, dword [esp + 0x28]
test dl, 4
je 0x5841b2
fld qword [esp + eax*8 + 0x68]
fadd qword [0x5f68e8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0xdc]
mov esi, dword [esp + 0xdc]
sar esi, 1
mov dword [esp + 0x20], esi
inc eax
jmp 0x5841b6
mov esi, dword [esp + 0x20]
cmp byte [esp + 0xf], 0
je 0x5841e4
test dl, 8
je 0x5841e4
fld qword [esp + eax*8 + 0x68]
fadd qword [0x5f68e8]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fistp dword [esp + 0x60]
mov eax, dword [esp + 0x60]
sar eax, 1
mov dword [esp + 0x38], eax
jmp 0x5841e8
mov eax, dword [esp + 0x38]
test eax, eax
jge 0x5841f0
xor eax, eax
jmp 0x5841fc
cmp eax, 0xff
jle 0x584200
mov eax, 0xff
mov dword [esp + 0x38], eax
test ecx, ecx
jge 0x584208
xor ecx, ecx
jmp 0x58420e
cmp ecx, eax
jle 0x584212
mov ecx, eax
mov dword [esp + 0x2c], ecx
test edi, edi
jge 0x58421a
xor edi, edi
jmp 0x584220
cmp edi, eax
jle 0x584224
mov edi, eax
mov dword [esp + 0x28], edi
test esi, esi
jge 0x58422c
xor esi, esi
jmp 0x584232
cmp esi, eax
jle 0x584236
mov esi, eax
mov dword [esp + 0x20], esi
mov edx, eax
mov eax, dword [esp + 0x5c]
shl edx, 8
add edx, ecx
mov ecx, dword [esp + 0x58]
shl edx, 8
add edx, edi
shl edx, 8
add edx, esi
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x583d80
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], esi
jl 0x583d6c
mov eax, dword [esp + 0x98]
push eax
call fcn.007152ac
mov ecx, dword [esp + 0x94]
push ecx
call fcn.007152ac
mov ecx, dword [esp + 0x9c]
add esp, 8
call fcn.006251cc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x34