Function at 0x55ff10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x624c63
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
lea edx, [edi + edi*2 + 6]
add edx, edx
add edx, edx
add edx, edx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
mov dword [esp + 0x34], esi
call fcn.0051c850
fld qword [eax]
lea ecx, [ebx + 4]
fstp qword [esp + 0x4c]
fld qword [eax + 8]
push ecx
mov ecx, esi
fstp qword [esp + 0x58]
call fcn.00521ad0
lea edx, [ebx + 0xc]
lea eax, [edi + edi*2 + 3]
push edx
lea ecx, [esi + eax*8]
call fcn.00521ad0
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.0051b3c0
fld qword [eax]
mov dx, word [ebx + 0x20]
fstp qword [esp + 0x34]
and dx, 0xfff9
cmp edi, 1
movzx eax, dx
mov dword [esp + 0x1c], eax
jl 0x5600b8
mov ecx, dword [esp + 0x18]
lea ebx, [esi + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x14]
push esi
call fcn.005ca630
lea ecx, [ebx - 0x10]
test eax, eax
je 0x560009
push esi
call fcn.005ca660
fldz
fstp qword [ebx]
jmp 0x5600a5
mov edx, dword [esp + 0x14]
push edx
call fcn.005ca660
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
mov dword [esp + 0x24], ecx
fsub qword [esp + 0x54]
fild dword [esp + 0x24]
fsub qword [esp + 0x4c]
fldz
fld st(0)
fucomp st(2)
fnstsw ax
test ah, 0x44
jp 0x56006f
fstp st(1)
fld st(0)
fucomp st(2)
fnstsw ax
test ah, 0x44
jp 0x560054
fstp st(1)
fld st(0)
jmp 0x56007a
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x560067
fld qword [0x6325e8]
jmp 0x56007a
fld qword [0x6325e0]
jmp 0x56007a
fstp st(0)
call sub.MSVCR90.dll__CIatan2
fldz
fxch st(1)
cmp word [esp + 0x1c], 1
jne 0x560088
fsubr qword [esp + 0x34]
jmp 0x56008c
fsub qword [esp + 0x34]
fst qword [ebx]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x5600a3
fadd qword [0x632608]
fstp qword [ebx]
jmp 0x5600a5
fstp st(0)
add dword [esp + 0x14], 0x10
add ebx, 0x18
sub dword [esp + 0x20], 1
jne 0x55ffe9
push 0x55f800
push 0x18
lea eax, [esi + 0x18]
push edi
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR90.dll_qsort]
lea eax, [edi + 1]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x5601c8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x60]
call fcn.0051db50
mov edx, dword [esi - 0x18]
mov eax, dword [esi - 0x14]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x94], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.0051e0e0
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.0051e210
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x90], 1
test eax, eax
je 0x56016c
lea edx, [esp + 0x5c]
push edx
mov ecx, eax
call fcn.0051db50
mov dword [esp + 0x18], eax
jmp 0x560174
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push eax
mov byte [esp + 0x94], 0
call fcn.005f1b40
cmp ebx, edi
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jge 0x56019c
mov ecx, dword [esp + 0x14]
push esi
call fcn.005ca660
lea ecx, [esp + 0x5c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0051b350
add dword [esp + 0x14], 0x10
inc ebx
lea eax, [edi + 1]
add esi, 0x18
cmp ebx, eax
jl 0x5600f0
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005f9aee
mov esp, ebp
pop ebp
ret