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

Disassembly:
mov eax, 0x621590
call fcn.0044c164
sub esp, 0x68
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x194]
test eax, eax
je 0x583f11
mov eax, dword [eax]
jmp 0x583f13
xor eax, eax
cmp byte [eax + 0x4a], 0
mov esi, dword [ebp + 8]
je 0x583f26
cmp byte [esi + 0x1c], 0
je 0x5843d7
lea eax, [esi + 0xac]
lea ebx, [edi + 0x34]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
call fcn.005232c3
cmp dword [eax], 0
setne al
cmp dword [ebp - 0x20], 0
movzx ax, al
mov word [ebp - 0x24], ax
je 0x583f5e
push dword [ebp - 0x20]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
mov al, byte [esi + 0x80]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.005843e6
lea ecx, [ebp - 0x44]
call fcn.00584429
mov eax, dword [edi + 0x194]
and dword [ebp - 0x14], 0
test eax, eax
je 0x583f88
mov eax, dword [eax]
jmp 0x583f8a
xor eax, eax
cmp byte [eax + 4], 0
je 0x583f97
mov dword [ebp - 0x14], 8
cmp byte [esi + 0x78], 0
je 0x583fa1
or dword [ebp - 0x14], 4
mov al, byte [esi + 0x1c]
push eax
push edi
call fcn.00554ab3
cmp word [ebp - 0x24], 0
pop ecx
pop ecx
je 0x583fbd
mov ecx, edi
call fcn.005507c0
jmp 0x583fd1
push edi
call fcn.00555b6d
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
call dword [ecx + 0x90]
pop ecx
pop ecx
mov eax, dword [edi + 0x194]
test eax, eax
je 0x583fdf
mov eax, dword [eax]
jmp 0x583fe1
xor eax, eax
mov al, byte [eax + 4]
mov edx, dword [esi]
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [edx]
cmp word [ebp - 0x24], 0
je 0x584341
mov ecx, edi
call fcn.0053eb5e
test al, al
je 0x584341
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
call dword [ecx]
cmp eax, 5
pop ecx
jne 0x584341
mov eax, 0x60000
xor edx, edx
div dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
imul ecx, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ecx + 7]
shr eax, 3
cmp eax, 1
mov dword [ebp - 0x1c], eax
jbe 0x58404c
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [ebp - 0x1c]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ecx
ja 0x584054
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
call fcn.00427feb
mov ecx, dword [eax]
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
push ecx
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0
pop ecx
mov dword [ebp - 0x28], eax
je 0x584086
push dword [ebp - 0x44]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
push 6
lea eax, [ebp - 0x74]
pop ecx
add esi, 0x84
push dword [ebp - 0x28]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0050db01
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov esi, eax
lea edi, [ebp - 0x5c]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
cmp edx, ecx
jae 0x584304
fld dword [ebp - 0x5c]
fcomp dword [0x62565c]
fnstsw ax
sahf
jne 0x584304
fld dword [ebp - 0x50]
fcomp dword [0x62565c]
fnstsw ax
sahf
jne 0x584304
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x2c]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
fidiv dword [ebp - 0x2c]
fcom qword [0x627400]
fnstsw ax
sahf
ja 0x58410d
fstp st(0)
fld qword [0x627400]
fst dword [ebp - 0x18]
fcomp dword [0x625670]
fnstsw ax
sahf
jae 0x584304
push esi
call fcn.00583c18
mov edi, eax
pop ecx
add esi, 0x9c
mov ecx, edi
mov eax, dword [edi]
push esi
mov dword [ebp - 0x1c], edi
call dword [eax + 4]
mov byte [edi + 0xc], 1
add edi, 0x10
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 8]
mov dword [ebp - 4], 1
call fcn.00593582
mov dword [ebp - 0x3c], eax
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x44]
mov dword [eax], ecx
mov dword [ebp - 0x40], 0x593563
fld dword [ebp - 0x54]
fcomp dword [0x62565c]
mov byte [ebp - 4], 2
fnstsw ax
sahf
jb 0x58422a
fldz
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fcomp dword [0x625670]
fnstsw ax
sahf
jae 0x5842cc
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
call dword [ecx + 0x3c]
fld dword [ebp - 0x50]
fcomp dword [0x62565c]
fld dword [ebp - 0x14]
fadd dword [ebp - 0x18]
pop ecx
fnstsw ax
fst dword [ebp - 0x28]
fld1
sahf
fcomp st(1)
fnstsw ax
jne 0x5841e1
sahf
jae 0x5841c7
fstp st(0)
fld1
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
fld1
push ecx
fstp dword [esp]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
jmp 0x584200
sahf
jae 0x5841e8
fstp st(0)
fld1
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
push ecx
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push eax
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add esp, 0x14
push eax
call dword [ecx + 0xc4]
pop ecx
push ebx
call fcn.0052aa0c
mov eax, dword [ebp - 0x28]
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x584187
fld1
fst dword [ebp - 0x14]
fcomp dword [0x62565c]
fnstsw ax
sahf
jbe 0x5842cc
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
call dword [ecx + 0x3c]
fld dword [ebp - 0x50]
fcomp dword [0x62565c]
fld dword [ebp - 0x14]
fsub dword [ebp - 0x18]
pop ecx
fnstsw ax
fst dword [ebp - 0x28]
fldz
sahf
fcomp st(1)
fnstsw ax
jne 0x584286
sahf
jbe 0x58426c
fstp st(0)
fldz
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
fld1
push ecx
fstp dword [esp]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
jmp 0x5842a5
sahf
jbe 0x58428d
fstp st(0)
fldz
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
fld dword [ebp - 0x14]
push ecx
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push eax
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add esp, 0x14
push eax
call dword [ecx + 0xc4]
pop ecx
push ebx
call fcn.0052aa0c
fld dword [ebp - 0x28]
pop ecx
jmp 0x58422c
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x5842f0
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.00585615
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x58437c
mov eax, dword [ebx + 4]
push dword [ebx]
call dword [eax + 0x3c]
fld1
mov eax, dword [ebx + 4]
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push dword [ebx]
call dword [eax + 0x64]
mov eax, dword [ebx + 4]
push dword [ebx]
call dword [eax + 0xc4]
push ebx
call fcn.0052aa0c
add esp, 0x1c
jmp 0x5842fc
mov eax, dword [ebx + 4]
push dword [ebx]
call dword [eax + 0x3c]
fld1
mov eax, dword [ebx + 4]
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
fldz
push ecx
fstp dword [esp]
push dword [ebx]
call dword [eax + 0x64]
mov eax, dword [ebx + 4]
push dword [ebx]
call dword [eax + 0xc4]
push ebx
call fcn.0052aa0c
add esp, 0x1c
cmp word [ebp - 0x24], 0
je 0x58438c
mov ecx, edi
call fcn.005509a4
jmp 0x584398
mov eax, dword [ebx + 4]
push dword [ebx]
call dword [eax + 0x94]
pop ecx
push esi
call fcn.00583c18
test eax, eax
pop ecx
je 0x5843d7
mov esi, dword [eax + 0x20]
test esi, esi
jne 0x5843b0
cmp byte [eax + 4], 0
je 0x5843d7
mov ecx, edi
call fcn.005498e6
mov eax, 0x400a0013
cmp esi, eax
jne 0x5843c7
push eax
call fcn.00593610
pop ecx
test esi, esi
je 0x5843d7
push 0
push esi
push edi
call fcn.0053d5ed
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret