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

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
lea eax, [esp + 0x68]
mov esi, ecx
fld dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00585850
fld dword [esp + 0x68]
fmul dword [esp + 0xa0]
fadd dword [esi + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.005c5ec0
mov edx, dword [esi + 0x68]
mov edi, eax
mov dword [esp + 0x14], edi
fisub dword [esp + 0x14]
mov ecx, esi
fstp dword [esi + 0x24]
mov ebx, dword [edx + 4]
call fcn.005782c0
fldz
add eax, edi
fst dword [esp + 0x28]
sub eax, ebx
fst dword [esp + 0x18]
mov ecx, 0
fst dword [esp + 0x30]
sets cl
fstp dword [esp + 0x34]
dec ecx
and eax, ecx
sub edi, eax
je 0x578fd5
fld dword [esi + 0xc]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, edx
fstp dword [esp]
call fcn.00585aa0
fldz
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x44
jnp 0x579814
fld dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00584aa0
fld dword [esi + 0xc]
lea edx, [esp + 0x78]
push edx
push ecx
mov ecx, dword [esi + 0x60]
fstp dword [esp]
call fcn.00583d80
fld dword [esi + 0xc]
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00584f20
fld dword [esi + 0xc]
lea ecx, [esp + 0x70]
push ecx
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00585160
fld dword [esi + 0xc]
lea edx, [esp + 0x74]
push edx
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.005853b0
fld dword [esi + 0xc]
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00585600
fld dword [esi + 0xc]
lea ecx, [esp + 0x60]
push ecx
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00585cf0
fld dword [esi + 0xc]
lea edx, [esp + 0x64]
push edx
push ecx
mov ecx, dword [esi + 0x68]
fstp dword [esp]
call fcn.00585f40
mov eax, dword [esi + 0x64]
cmp byte [eax + 0x13], 3
jne 0x578fd5
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x578fd5
fld dword [ebx + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(0), st(0)
fld1
fsubrp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.005c5310
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x6361f8]
fnstsw ax
test ah, 1
jne 0x578fd5
fld dword [ebx + 4]
fchs
fld dword [ebx + 0x14]
call fcn.005c978a
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul qword [0x622170]
fstp dword [esp + 0x34]
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x579814
mov dword [esp + 0x14], edi
push ebp
lea ebx, [ebx]
call fcn.0057eb60
mov ecx, dword [esi + 0x64]
mov edi, eax
mov dword [edi + 0x5c], ecx
mov edx, dword [esi + 0x68]
mov dword [edi + 0x60], edx
fld dword [esp + 0x2c]
fstp dword [edi + 0x54]
mov dword [esp + 0x48], edi
fld dword [esp + 0x2c]
fstp dword [edi + 0x58]
mov ecx, dword [esi + 0x68]
call fcn.00584a80
movzx eax, al
cmp eax, 3
ja case.default.0x579029
jmp dword [eax*4 + 0x579820]
fldz
fst dword [edi + 0xc]
fst dword [edi + 0x10]
fstp dword [edi + 0x14]
jmp case.default.0x579029
fld dword [0x622108]
sub esp, 8
fstp dword [esp + 4]
lea ebx, [edi + 0xc]
fld dword [0x63c270]
fstp dword [esp]
call fcn.0053da90
fstp dword [ebx]
fld dword [0x622108]
fstp dword [esp + 4]
fld dword [0x63c270]
fstp dword [esp]
call fcn.0053da90
add esp, 8
fstp dword [edi + 0x10]
fldz
push ebx
push ebx
fstp dword [edi + 0x14]
call fcn.0058df9f
mov ecx, dword [esi + 0x68]
call fcn.00521160
test eax, eax
je 0x5790bc
mov eax, dword [esi + 0x68]
fld dword [eax + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [ebx]
fld dword [esp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebx]
fld st(0)
fmul dword [ebx + 4]
jmp 0x579261
mov ecx, dword [esi + 0x68]
fld dword [ecx + 0x28]
sub esp, 8
fstp dword [esp + 4]
fldz
fstp dword [esp]
call fcn.0053da90
fadd dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld st(0)
fmul dword [ebx]
jmp 0x579257
mov eax, dword [esi + 0x68]
fld dword [eax + 0x1c]
sub esp, 8
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [eax + 0x1c]
fchs
fmulp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0053da90
fadd dword [esp + 0x24]
fstp dword [edi + 0xc]
mov eax, dword [esi + 0x68]
fld dword [eax + 0x20]
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [eax + 0x20]
fchs
fmulp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0053da90
fadd dword [esp + 0x24]
fstp dword [edi + 0x10]
mov eax, dword [esi + 0x68]
fld dword [eax + 0x24]
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [eax + 0x24]
fchs
fmulp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0053da90
fadd dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x14]
jmp case.default.0x579029
fld dword [0x622108]
sub esp, 8
fstp dword [esp + 4]
lea ebx, [edi + 0xc]
fld dword [0x63c270]
fstp dword [esp]
call fcn.0053da90
fstp dword [ebx]
fld dword [0x622108]
fstp dword [esp + 4]
fld dword [0x63c270]
fstp dword [esp]
call fcn.0053da90
fstp dword [edi + 0x10]
fld dword [0x622108]
fstp dword [esp + 4]
fld dword [0x63c270]
fstp dword [esp]
call fcn.0053da90
add esp, 8
fstp dword [edi + 0x14]
push ebx
push ebx
call fcn.0058df9f
mov ecx, dword [esi + 0x68]
call fcn.00521160
test eax, eax
je 0x57922c
mov edx, dword [esi + 0x68]
fld dword [edx + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
fmul dword [ebx]
fstp dword [ebx]
fld st(0)
fmul dword [ebx + 4]
jmp 0x579261
mov eax, dword [esi + 0x68]
fld dword [eax + 0x28]
sub esp, 8
fstp dword [esp + 4]
fldz
fstp dword [esp]
call fcn.0053da90
fadd dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld dword [ebx]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebx]
add esp, 8
fld dword [ebx + 4]
fmul st(1)
fstp dword [ebx + 4]
fmul dword [ebx + 8]
fstp dword [ebx + 8]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
lea ebx, [edi + 0xc]
mov dword [esp + 0x20], ecx
fld dword [ebx]
fadd dword [esp + 0x7c]
fstp dword [ebx]
fld dword [esp + 0x24]
fadd dword [ebx + 4]
fstp dword [ebx + 4]
fld dword [esp + 0x28]
fadd dword [ebx + 8]
fstp dword [ebx + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x5792d0
mov ecx, dword [esi + 0x64]
cmp dword [ecx + 0x20], 0
jne 0x5792d0
push eax
push ebx
push ebx
call fcn.0058e2af
mov edx, dword [esi + 4]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push ecx
call fcn.0058e2af
mov edx, dword [esp + 0x20]
fldz
mov dword [edi], edx
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [edi + 8], ecx
fst dword [edi + 0x24]
lea ebp, [edi + 0x24]
fst dword [edi + 0x28]
fstp dword [edi + 0x2c]
mov ecx, dword [esi + 0x68]
call fcn.00584a90
cmp al, 2
jne 0x579353
fld dword [ebx + 4]
lea edx, [esp + 0x88]
fsub dword [esp + 0x24]
push edx
push ebp
fstp dword [esp + 0x1c]
fld dword [ebx + 8]
fsub dword [esp + 0x30]
fstp dword [esp + 0x18]
fld dword [ebx]
fsub dword [esp + 0x28]
fstp dword [esp + 0x90]
fld dword [esp + 0x1c]
fstp dword [esp + 0x94]
fld dword [esp + 0x18]
fstp dword [esp + 0x98]
call fcn.0058df9f
fld dword [ebp]
fld qword [0x621fb0]
jmp 0x579418
mov ecx, dword [esi + 0x68]
call fcn.00584a90
cmp al, 1
jne 0x57942d
mov ecx, dword [esi + 0x68]
call fcn.00584a80
test al, al
jne 0x5793c8
fld dword [0x622198]
sub esp, 8
fstp dword [esp + 4]
fld dword [0x62b4a8]
fstp dword [esp]
call fcn.0053da90
fstp dword [ebp]
fld dword [0x622198]
fstp dword [esp + 4]
fld dword [0x62b4a8]
fstp dword [esp]
call fcn.0053da90
fstp dword [edi + 0x28]
fld dword [0x622198]
fstp dword [esp + 4]
fld dword [0x62b4a8]
fstp dword [esp]
call fcn.0053da90
fstp dword [edi + 0x2c]
add esp, 8
jmp 0x57942d
fld dword [ebx + 4]
lea eax, [esp + 0x94]
fsub dword [esp + 0x24]
push eax
push ebp
fstp dword [esp + 0x18]
fld dword [ebx + 8]
fsub dword [esp + 0x30]
fstp dword [esp + 0x1c]
fld dword [ebx]
fsub dword [esp + 0x28]
fstp dword [esp + 0x9c]
fld dword [esp + 0x18]
fstp dword [esp + 0xa0]
fld dword [esp + 0x1c]
fstp dword [esp + 0xa4]
call fcn.0058df9f
fld dword [ebp]
fld qword [0x621f08]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp]
fld dword [ebp + 4]
fmul st(1)
fstp dword [ebp + 4]
fmul dword [ebp + 8]
fstp dword [ebp + 8]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
test eax, eax
je 0x579463
mov ecx, dword [esi + 0x64]
cmp dword [ecx + 0x20], 0
jne 0x579463
push eax
lea edx, [esp + 0x40]
push edx
mov eax, edx
push eax
call fcn.0058e2c2
fld dword [esp + 0x3c]
fadd dword [ebp]
fstp dword [ebp]
fld dword [esp + 0x40]
fadd dword [ebp + 4]
fstp dword [ebp + 4]
fld dword [esp + 0x44]
fadd dword [ebp + 8]
fstp dword [ebp + 8]
mov ecx, dword [esi + 0x68]
fldz
fcomp dword [ecx + 0x2c]
fnstsw ax
test ah, 5
jp 0x5794d2
fld dword [ecx + 0x2c]
sub esp, 8
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [ecx + 0x2c]
fchs
fmulp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0053da90
fmul qword [0x621f48]
add esp, 8
fadd dword [ebp]
fstp dword [ebp]
fldz
mov ecx, dword [esi + 0x68]
fcomp dword [ecx + 0x30]
fnstsw ax
test ah, 5
jp 0x579523
fld dword [ecx + 0x30]
sub esp, 8
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [ecx + 0x30]
fchs
fmulp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0053da90
fmul qword [0x621f48]
add esp, 8
fadd dword [edi + 0x28]
fstp dword [edi + 0x28]
fldz
mov ecx, dword [esi + 0x68]
fcomp dword [ecx + 0x34]
fnstsw ax
test ah, 5
jp 0x579574
fld dword [ecx + 0x34]
sub esp, 8
fld qword [0x6221e0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [ecx + 0x34]
fchs
fmulp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0053da90
fmul qword [0x621f48]
add esp, 8
fadd dword [edi + 0x2c]
fstp dword [edi + 0x2c]
fld dword [esp + 0x34]
sub esp, 8
fst dword [esp + 0x18]
fmul dword [ebp]
fstp dword [ebp]
fld dword [ebp + 4]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebp + 4]
fmul dword [ebp + 8]
fstp dword [ebp + 8]
mov ecx, dword [esp + 0x6c]
mov dword [edi + 0x30], ecx
mov edx, dword [esp + 0x70]
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x64]
movzx ecx, word [eax + 0x1c]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp dword [edi + 0x40]
mov eax, dword [esi + 0x64]
movzx edx, word [eax + 0x1e]
movzx eax, word [eax + 0x1c]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fstp dword [esp + 4]
fild dword [esp + 0x18]
fstp dword [esp]
call fcn.0053da90
fstp dword [edi + 0x40]
mov ecx, dword [esi + 0x64]
add esp, 8
cmp byte [ecx + 0x13], 3
jne 0x579601
cmp dword [esi + 4], 0
je 0x579601
fld dword [edi + 0x40]
fadd dword [esp + 0x38]
fstp dword [edi + 0x40]
mov byte [edi + 0x50], 0
mov edx, dword [esi + 0x64]
mov al, byte [edx + 4]
mov byte [edi + 0x48], al
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 0xc8]
sub ecx, dword [eax + 0xc4]
sar ecx, 2
cmp ecx, 1
jbe 0x579685
cmp byte [eax + 4], 4
jne 0x57965e
call fcn.0053da50
test al, 1
je 0x57963e
mov byte [edi + 0x50], 0
mov byte [edi + 0x48], 1
jmp 0x57965e
mov eax, dword [esi + 0x64]
mov edx, dword [eax + 0xc8]
sub edx, dword [eax + 0xc4]
add eax, 0xb8
sar edx, 2
dec dl
mov byte [edi + 0x50], dl
mov byte [edi + 0x48], 2
mov ecx, dword [esi + 0x64]
cmp dword [ecx + 0xc], 0
je 0x579685
mov eax, dword [ecx + 0xc8]
sub eax, dword [ecx + 0xc4]
sar eax, 2
dec eax
push eax
push 0
call fcn.0053dad0
add esp, 8
mov byte [edi + 0x50], al
fld dword [ebp]
fld dword [esp + 0xa4]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [ebp + 4]
fmul st(1)
fstp dword [esp + 0x50]
fmul dword [ebp + 8]
fstp dword [esp + 0x54]
fld dword [ebx]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
fld dword [ebx + 4]
fsub dword [esp + 0x50]
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
fld dword [ebx + 8]
mov dword [edi + 0x18], eax
fsub dword [esp + 0x54]
mov dword [edi + 0x1c], ecx
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x60]
mov dword [edi + 0x20], edx
mov ebx, dword [esi + 0x64]
mov ebp, dword [ebx + 0x64]
add ebx, 0x58
cmp ebp, dword [ebx + 0x10]
jbe 0x5796f1
call fcn.005c5aaf
mov ebx, dword [ebx]
test ebx, ebx
jne 0x579789
call fcn.005c5aaf
cmp ebp, dword [ebx + 0x10]
jb 0x57970a
call fcn.005c5aaf
fld dword [ebp + 4]
fstp dword [edi + 0x38]
mov ebx, dword [esi + 0x64]
mov ebp, dword [ebx + 0x7c]
add ebx, 0x70
cmp ebp, dword [ebx + 0x10]
jbe 0x579723
call fcn.005c5aaf
mov ebx, dword [ebx]
test ebx, ebx
jne 0x579790
call fcn.005c5aaf
cmp ebp, dword [ebx + 0x10]
jb 0x579738
call fcn.005c5aaf
fld dword [ebp + 4]
fstp dword [edi + 0x3c]
mov ebx, dword [esi + 0x64]
mov ebp, dword [ebx + 0x94]
add ebx, 0x88
cmp ebp, dword [ebx + 0x10]
jbe 0x579757
call fcn.005c5aaf
mov ebx, dword [ebx]
test ebx, ebx
jne 0x579794
call fcn.005c5aaf
cmp ebp, dword [ebx + 0x10]
jb 0x57976c
call fcn.005c5aaf
mov eax, dword [ebp + 4]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x30]
push edi
test eax, eax
jne 0x579798
mov ecx, dword [esi + 0x60]
call fcn.00582b50
mov dword [esp + 0x30], edi
jmp 0x5797a4
mov ebx, dword [ebx]
jmp 0x579700
mov ebx, dword [ebx]
jmp 0x57972e
mov ebx, dword [ebx]
jmp 0x579762
mov ecx, dword [eax + 0x70]
push eax
call fcn.00578270
mov dword [edi + 0x70], eax
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x3c]
movzx edi, byte [edi + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x5797ca
call fcn.005c5aaf
mov eax, dword [esi + 0x3c]
lea edx, [edi*8]
sub edx, edi
mov ebx, dword [eax + edx*4 + 0x14]
lea edi, [eax + edx*4]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x48]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.005602a0
push 1
mov ecx, edi
mov ebp, eax
call fcn.00561b40
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, 1
add dword [esi + 0x28], eax
sub dword [esp + 0x18], eax
jne 0x578ff0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret 4