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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
call fcn.005595b0
add esp, 8
cmp dword [edi + 0x58], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jl 0x55af69
cmp dword [edi + 4], 0
jne 0x55a821
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
jl 0x55af69
mov ecx, dword [ebp + 0xc]
jg 0x55a839
test ecx, ecx
jb 0x55af69
cmp esi, edx
jg 0x55af69
jl 0x55a84b
cmp ecx, eax
ja 0x55af69
mov ebx, dword [edi + 0x34]
sub ebx, 1
mov dword [esp + 0x34], ebx
js 0x55a88c
mov esi, dword [edi + 0x44]
mov ecx, ebx
shl ecx, 4
lea ecx, [esi + ecx + 8]
mov esi, dword [ecx]
sub eax, esi
mov esi, dword [ecx + 4]
sbb edx, esi
cmp dword [ebp + 0x10], edx
jg 0x55a880
jl 0x55a878
cmp dword [ebp + 0xc], eax
jae 0x55a880
dec ebx
sub ecx, 0x10
test ebx, ebx
jge 0x55a863
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov edx, dword [edi + 0x38]
mov eax, dword [edx + ebx*8 + 8]
mov esi, dword [edx + ebx*8 + 4]
lea ecx, [edx + ebx*8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov ecx, dword [edi + 0x44]
shl ebx, 4
add ecx, ebx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
add ebx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
adc ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, eax
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, edx
sbb eax, dword [esp + 0x3c]
add ecx, dword [ebp + 0xc]
mov dword [esp + 0x54], edx
adc eax, dword [ebp + 0x10]
cmp esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
jg 0x55acc1
jl 0x55a914
mov eax, dword [esp + 0x28]
cmp edx, eax
jae 0x55acc1
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
sbb eax, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
test eax, eax
jg 0x55a940
jl 0x55a9bb
cmp ecx, 0x10000
jb 0x55a9bb
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
sub edx, eax
sbb ebx, ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x58]
sub edx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], ebx
fild qword [esp + 0x80]
sbb eax, ecx
fild qword [esp + 0x78]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fmulp st(1)
fild qword [esp + 0x68]
fdivp st(1)
call fcn.004f36d6
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ebx, edx
adc ebx, esi
sub eax, 0x10000
sbb ebx, 0
mov dword [esp + 0x20], eax
add ecx, 0x10000
mov eax, esi
adc eax, 0
cmp ebx, eax
jg 0x55a9c5
jl 0x55a9bb
cmp dword [esp + 0x20], ecx
jae 0x55a9c5
mov ecx, dword [esp + 0x18]
mov ebx, esi
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
cmp edx, dword [edi + 8]
jne 0x55a9d3
cmp ebx, dword [edi + 0xc]
je 0x55aa35
mov ecx, dword [edi]
test ecx, ecx
je 0x55aa1f
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x55aa18
mov edx, dword [esp + 0x20]
push 0
push ebx
push edx
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x55aa18
mov eax, dword [esp + 0x20]
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x1c], eax
jl 0x55aa24
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jmp 0x55aa24
mov eax, 0xffffff80
jmp 0x55aa24
mov eax, 0xffffff7f
cdq
mov dword [esp + 0x10], eax
or eax, edx
jne 0x55af30
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [edi + 8]
mov edx, dword [esp + 0x2c]
sbb edx, dword [edi + 0xc]
lea eax, [esp + 0x88]
push edx
push ecx
push eax
call fcn.005599c0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, 0xffffff80
jne 0x55aa6f
cmp edx, 0xffffffff
je 0x55af30
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
jg 0x55ab32
jl 0x55aa87
cmp dword [esp + 0x10], 0
jae 0x55ab32
mov ecx, dword [esp + 0x18]
add ecx, 1
mov eax, esi
adc eax, 0
cmp ebx, eax
jl 0x55acc1
jg 0x55aaa7
cmp dword [esp + 0x20], ecx
jbe 0x55acc1
mov edx, dword [esp + 0x20]
or edx, ebx
je 0x55af30
mov esi, dword [esp + 0x20]
add esi, 0xffff0000
adc ebx, 0xffffffff
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
jg 0x55aada
jl 0x55aad2
cmp esi, dword [esp + 0x18]
ja 0x55aada
mov esi, ecx
mov dword [esp + 0x20], esi
mov ebx, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x55ab28
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x55ab1e
push 0
push ebx
push esi
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x55ab1e
xor eax, eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x1c], eax
jl 0x55ac67
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jmp 0x55ac67
mov eax, 0xffffff80
jmp 0x55ac67
mov eax, 0xffffff7f
jmp 0x55ac67
mov eax, dword [esp + 0x88]
movzx ecx, byte [eax + 0x11]
movzx edx, byte [eax + 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xf]
movzx eax, byte [eax + 0xe]
shl ecx, 8
or ecx, edx
mov edx, dword [edi + 0x40]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x34]
cmp ecx, dword [edx + eax*4]
jne 0x55ac78
lea eax, [esp + 0x88]
call fcn.00558d80
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x55ac78
cmp edx, dword [esp + 0x4c]
jg 0x55abe2
jl 0x55ab8f
cmp eax, dword [esp + 0x48]
jae 0x55abe2
mov ecx, dword [esp + 0x10]
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
sbb eax, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], edx
test eax, eax
jg 0x55aca7
jl 0x55abd7
cmp ecx, 0xac44
ja 0x55aca7
mov dword [esp + 0x20], ebx
mov ebx, esi
jmp 0x55ac78
mov ecx, dword [esp + 0x18]
add ecx, 1
mov dword [esp + 0x60], ecx
mov ecx, esi
adc ecx, 0
cmp ebx, ecx
mov dword [esp + 0x64], ecx
jl 0x55acc1
jg 0x55ac0e
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x20], ecx
jbe 0x55acc1
mov ecx, dword [esp + 0x28]
cmp ecx, dword [edi + 8]
jne 0x55ac93
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 0xc]
jne 0x55ac93
add dword [esp + 0x20], 0xffff0000
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
adc ebx, 0xffffffff
cmp ebx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jg 0x55ac57
jl 0x55ac4b
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
ja 0x55ac57
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
push ebx
push eax
mov esi, edi
call fcn.005598e0
add esp, 8
cdq
mov dword [esp + 0x10], eax
or eax, edx
jne 0x55af30
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
jg 0x55acc1
jl 0x55aa35
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x18], ecx
jae 0x55acc1
jmp 0x55aa35
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp esi, dword [esp + 0x2c]
jl 0x55a914
jg 0x55acc1
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x18], edx
jb 0x55a914
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov esi, edi
call fcn.005598e0
cdq
or ecx, 0xffffffff
add esp, 8
mov dword [esp + 0x10], eax
or eax, edx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x54], ecx
jne 0x55af30
push ecx
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.005599c0
add esp, 0xc
mov dword [esp + 0x10], eax
test edx, edx
jl 0x55af30
jg 0x55ad10
test eax, eax
jb 0x55af30
mov ebx, dword [esp + 0x34]
cmp ebx, dword [edi + 0x60]
je 0x55ad33
call fcn.00559860
mov eax, dword [edi + 0x40]
mov dword [edi + 0x60], ebx
mov ecx, dword [eax + ebx*4]
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x58], 3
jmp 0x55ad3e
lea eax, [edi + 0x1e0]
call fcn.005577b0
mov edx, dword [edi + 0x5c]
lea ebx, [edi + 0x78]
push edx
mov edx, ebx
call fcn.00559180
add esp, 4
lea eax, [esp + 0x68]
mov esi, ebx
call fcn.005591b0
lea ebx, [ebx]
test ebx, ebx
je 0x55ad69
cmp dword [ebx], 0
jne 0x55ad6d
xor eax, eax
jmp 0x55ad80
push 0
lea esi, [esp + 0x8c]
mov eax, ebx
call fcn.00558a30
add esp, 4
cdq
mov ecx, eax
or ecx, edx
je 0x55adcd
test edx, edx
jl 0x55aea5
jg 0x55ad99
test eax, eax
jb 0x55aea5
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov eax, esi
and eax, edx
cmp eax, 0xffffffff
jne 0x55aeaf
test ebx, ebx
je 0x55ad69
cmp dword [ebx], 0
je 0x55ad60
push 1
xor esi, esi
mov eax, ebx
call fcn.00558a30
add esp, 4
jmp 0x55ad60
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov esi, edi
call fcn.005598e0
cdq
add esp, 8
mov dword [esp + 0x10], eax
test edx, edx
jl 0x55af30
jg 0x55adf8
test eax, eax
jb 0x55af30
lea ebx, [esp + 0x68]
mov eax, edi
call fcn.0055a660
mov esi, edx
mov ebx, eax
mov dword [esp + 0x10], ebx
test esi, esi
jl 0x55af30
jg 0x55ae20
test ebx, ebx
jb 0x55af30
lea ecx, [ecx]
mov eax, dword [esp + 0x68]
movzx ecx, byte [eax + 0x11]
movzx edx, byte [eax + 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0xf]
movzx eax, byte [eax + 0xe]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
cmp ecx, dword [edi + 0x5c]
jne 0x55ae67
lea eax, [esp + 0x68]
call fcn.00558d80
cmp edx, 0xffffffff
jg 0x55ae8f
jl 0x55ae5d
cmp eax, 0xffffffff
ja 0x55ae8f
mov ecx, dword [esp + 0x68]
test byte [ecx + 5], 1
je 0x55ae8f
mov dword [edi + 8], ebx
lea ebx, [esp + 0x68]
mov eax, edi
mov dword [edi + 0xc], esi
call fcn.0055a660
mov esi, edx
mov ebx, eax
test esi, esi
jg 0x55ae20
jl 0x55ae86
test ebx, ebx
jae 0x55ae20
mov dword [esp + 0x10], ebx
jmp 0x55af30
push esi
push ebx
push edi
mov dword [esp + 0x1c], ebx
call fcn.00559a70
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xffffff78
jmp 0x55af28
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x44]
shl eax, 4
sub esi, dword [eax + ecx]
sbb edx, dword [eax + ecx + 4]
xor eax, eax
cmp edx, eax
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], edx
jg 0x55aed7
jl 0x55aed1
cmp esi, eax
jae 0x55aed7
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov edx, dword [esp + 0x38]
add dword [edi + 0x50], edx
mov eax, dword [esp + 0x3c]
mov esi, dword [ebp + 0x10]
adc dword [edi + 0x54], eax
mov ecx, dword [edi + 0x54]
cmp ecx, esi
jg 0x55af20
jl 0x55aef9
mov edx, dword [edi + 0x50]
cmp edx, dword [ebp + 0xc]
ja 0x55af20
push 0xffffffffffffffff
push edi
call fcn.005595b0
add esp, 8
cmp esi, edx
jg 0x55af20
jl 0x55af0f
cmp dword [ebp + 0xc], eax
ja 0x55af20
fldz
xor eax, eax
fst qword [edi + 0x68]
fstp qword [edi + 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0xffffff7f
mov dword [esp + 0x14], 0xffffffff
or eax, 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
lea eax, [edi + 0x1e0]
push eax
call fcn.00557810
lea ecx, [edi + 0x250]
add esp, 4
push ecx
call fcn.00557c50
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x58], 2
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