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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x58]
cmp eax, 2
jl 0x559dd8
cmp dword [edi + 4], 0
jne 0x559aa0
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
jl 0x559dd8
mov ebx, dword [ebp + 0xc]
jg 0x559ab8
test ebx, ebx
jb 0x559dd8
cmp esi, dword [edi + 0x14]
jg 0x559dd8
jl 0x559acc
cmp ebx, dword [edi + 0x10]
ja 0x559dd8
cmp eax, 3
jl 0x559afc
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x38]
cmp esi, dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
jl 0x559af2
jg 0x559ae6
cmp ebx, dword [eax]
jb 0x559af2
cmp esi, dword [eax + 0xc]
jl 0x559afc
jg 0x559af2
cmp ebx, dword [eax + 8]
jb 0x559afc
mov esi, edi
call fcn.00559860
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x5c]
lea edx, [edi + 0x78]
push eax
call fcn.00559180
add esp, 4
lea eax, [edi + 0x1e0]
call fcn.005577b0
push esi
push ebx
mov esi, edi
call fcn.005598e0
add esp, 8
test eax, eax
je 0x559b54
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
call fcn.00558c40
mov esi, edi
call fcn.00559860
mov eax, 0xffffff77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x5c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
push ecx
lea eax, [esp + 0x5c]
call fcn.00558ca0
add esp, 4
lea eax, [esp + 0x58]
call fcn.00558e90
mov ebx, 3
cmp dword [edi + 0x58], ebx
jl 0x559c32
cmp dword [esp + 0x58], 0
je 0x559c32
push 1
lea esi, [esp + 0x3c]
lea eax, [esp + 0x5c]
call fcn.00558a30
add esp, 4
test eax, eax
jle 0x559c32
mov edx, dword [edi + 0x60]
mov eax, dword [edi + 0x48]
shl edx, 5
add eax, edx
cmp dword [eax + 0x1c], 0
je 0x559c28
mov edx, esi
call fcn.00556a00
mov ebx, eax
test ebx, ebx
jge 0x559bde
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00558e70
xor ebx, ebx
jmp 0x559c0a
cmp dword [esp + 0x1c], 0
je 0x559bf8
cmp dword [esp + 0x10], 0
jne 0x559bf8
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00558e70
jmp 0x559c0a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x559c0a
lea ecx, [ebx + eax]
sar ecx, 2
add dword [esp + 0x18], ecx
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, esi
and edx, ecx
cmp edx, 0xffffffff
jne 0x559d50
mov dword [esp + 0x14], ebx
jmp 0x559b7f
xor esi, esi
lea eax, [edi + 0x78]
call fcn.00558e70
cmp dword [esp + 0x14], 0
jne 0x559db5
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push eax
call fcn.005599c0
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test edx, edx
jl 0x559da5
jg 0x559c68
test eax, eax
jb 0x559da5
cmp dword [edi + 0x58], ebx
jl 0x559c9e
lea eax, [esp + 0x28]
call fcn.00558d50
cmp dword [edi + 0x5c], eax
je 0x559c95
mov ecx, dword [esp + 0x28]
test byte [ecx + 5], 2
je 0x559c95
mov esi, edi
call fcn.00559860
lea esi, [esp + 0x58]
call fcn.00558c40
cmp dword [edi + 0x58], ebx
jge 0x559d23
lea eax, [esp + 0x28]
call fcn.00558d50
mov ecx, dword [edi + 0x34]
xor esi, esi
mov ebx, eax
test ecx, ecx
jle 0x559cc1
mov eax, dword [edi + 0x40]
cmp dword [eax], ebx
je 0x559cc1
inc esi
add eax, 4
cmp esi, ecx
jl 0x559cb5
cmp esi, ecx
je 0x559b7f
push ebx
lea edx, [edi + 0x78]
mov dword [edi + 0x60], esi
mov dword [edi + 0x5c], ebx
call fcn.00559180
add esp, 4
cmp dword [esp + 0x58], 0
je 0x559cf2
lea eax, [esp + 0x58]
call fcn.00558e90
mov dword [esp + 0x1a8], ebx
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x58], 3
cmp edx, dword [eax + esi*8 + 4]
jg 0x559d1b
jl 0x559d11
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + esi*8]
ja 0x559d1b
mov dword [esp + 0x10], 1
jmp 0x559d23
mov dword [esp + 0x10], 0
lea eax, [esp + 0x28]
lea esi, [edi + 0x78]
call fcn.005591b0
lea eax, [esp + 0x28]
lea esi, [esp + 0x58]
call fcn.005591b0
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + 5]
and eax, 4
mov dword [esp + 0x1c], eax
jmp 0x559b7f
mov ebx, dword [edi + 0x60]
mov edx, dword [edi + 0x44]
mov eax, ebx
shl eax, 4
sub esi, dword [eax + edx]
sbb ecx, dword [eax + edx + 4]
test ecx, ecx
jg 0x559d70
jl 0x559d6c
test esi, esi
jae 0x559d70
xor esi, esi
xor ecx, ecx
test ebx, ebx
jle 0x559d88
lea eax, [edx + 8]
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc ecx, edx
add eax, 0x10
sub ebx, 1
jne 0x559d77
mov eax, dword [esp + 0x18]
cdq
sub esi, eax
sbb ecx, edx
xor eax, eax
cmp ecx, eax
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], ecx
jg 0x559dbe
jl 0x559db8
cmp esi, eax
jae 0x559dbe
jmp 0x559db8
push 0xffffffffffffffff
push edi
call fcn.005595b0
add esp, 8
mov dword [edi + 0x54], edx
jmp 0x559dbb
or eax, 0xffffffff
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], eax
lea esi, [esp + 0x58]
call fcn.00558c40
fldz
fst qword [edi + 0x68]
xor eax, eax
fstp qword [edi + 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff7d
pop ebx
mov esp, ebp
pop ebp
ret