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

Disassembly:
push 0xffffffffffffffff
push 0x10084661
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1009fc80]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x5c]
call fcn.100481c0
mov ecx, dword [esi + 0x5c]
call fcn.1005e8a0
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x80]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x5c]
call fcn.1005e8a0
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x38]
mov ebx, dword [esp + 0x13c]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [esp + 0x2c], edx
test ebx, ebx
jne 0x1005bc95
xor ebp, ebp
jmp 0x1005bcb0
mov edx, dword [esi + 0x70]
sub edx, dword [esi + 0x6c]
lea ebp, [ebx - 1]
sar edx, 2
cmp ebp, edx
jb 0x1005bcaa
call fcn.100661d7
mov eax, dword [esi + 0x6c]
mov ebp, dword [eax + ebp*4]
mov ecx, dword [esi + 0x70]
sub ecx, dword [esi + 0x6c]
sar ecx, 2
cmp ebx, ecx
jb 0x1005bcc2
call fcn.100661d7
mov edx, dword [esi + 0x6c]
mov eax, dword [edx + ebx*4]
push eax
push ebp
mov ecx, esi
call fcn.1005ca90
xor ebx, ebx
mov dword [esi + 0x78], ebx
xor ecx, ecx
xchg dword [edi], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x14], ebx
call fcn.1005e8a0
test al, al
je 0x1005bd27
cmp dword [esi + 0x58], ebx
je 0x1005bd1b
nop
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x1005bd16
mov edx, dword [esi + 0x50]
inc dword [esi + 0x54]
mov ecx, dword [esi + 0x54]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x1005bd0b
mov dword [esi + 0x54], ebx
dec eax
mov dword [esi + 0x58], eax
cmp eax, ebx
jne 0x1005bd16
mov dword [esi + 0x54], ebx
cmp dword [esi + 0x58], ebx
jne 0x1005bcf0
lea eax, [esi + 0x20]
push eax
lea ecx, [esi + 0x3c]
call fcn.100286b0
mov ecx, dword [esi + 0x5c]
call fcn.1005e8a0
mov ecx, esi
call fcn.1005c6e0
cmp dword [esi + 0x58], ebx
je 0x1005be9d
lea ebx, [esi + 0x3c]
mov ebp, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
add eax, ebp
cmp ebp, eax
jbe 0x1005bd53
call fcn.100661d7
mov ecx, dword [ebx]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], ebp
call fcn.1005c2d0
mov ebp, dword [eax]
mov eax, dword [ebx + 0x1c]
xor edx, edx
cmp eax, edx
je 0x1005bd90
mov edi, dword [ebx + 0x14]
inc dword [ebx + 0x18]
mov ecx, dword [ebx + 0x18]
add edi, edi
add edi, edi
cmp edi, ecx
ja 0x1005bd85
mov dword [ebx + 0x18], edx
dec eax
mov dword [ebx + 0x1c], eax
cmp eax, edx
jne 0x1005bd90
mov dword [ebx + 0x18], edx
mov eax, dword [ebp + 0x38]
cmp eax, dword [esp + 0x2c]
ja 0x1005be15
mov byte [esi + 0x8c], 0
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1005bdbe
call fcn.100661d7
mov eax, dword [esi + 0x14]
mov ecx, ebp
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esi + 0x34]
sub ecx, dword [esi + 0x30]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, ecx
jb 0x1005bde5
call fcn.100661d7
mov edx, dword [esi + 0x30]
inc dword [esp + 0x14]
mov byte [edi + edx], 1
cmp dword [ebp], 0
je 0x1005be8a
mov eax, dword [esp + 0x18]
push eax
push ebp
mov ecx, esi
call fcn.1005b7a0
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax - 1]
mov dword [esp + 0x14], edx
jmp 0x1005be8a
mov edi, dword [ebp]
mov dword [esp + 0x1c], edi
test edi, edi
je 0x1005be37
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.100286b0
mov edi, dword [edi + 4]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1005be20
mov byte [esi + 0x8c], 0
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x1005be5c
call fcn.100661d7
sub ebp, dword [esi + 0x14]
mov eax, 0x38e38e39
imul ebp
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esi + 0x34]
sub edx, dword [esi + 0x30]
cmp edi, edx
jb 0x1005be7f
call fcn.100661d7
mov eax, dword [esi + 0x30]
inc dword [esp + 0x14]
mov byte [edi + eax], 1
mov ecx, esi
call fcn.1005c6e0
cmp dword [esi + 0x58], 0
jne 0x1005bd42
xor ebx, ebx
mov byte [esi + 0x8c], 0
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x80]
lock xadd dword [eax], ecx
mov ecx, dword [esi + 0x5c]
call fcn.1005e8a0
test al, al
je 0x1005c07e
lea edx, [esp + 0x30]
push 0x10044930
push edx
call fcn.10047db0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x64]
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.10051b10
fild qword [esp + 0x68]
mov eax, dword [esi + 0x20]
add esp, 0x14
fdiv dword [esp + 0x64]
fstp dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, eax
cmp ecx, ebx
je 0x1005bf22
nop
mov edx, dword [ecx + 0x38]
mov edi, dword [eax + 0x38]
cmp edx, edi
cmova eax, ecx
mov ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x1005bf10
mov edx, dword [eax + 0x3c]
push 0x1008a348
lea eax, [esp + 0x2c]
push eax
push str.___Best:
push 0x100aa188
mov dword [esp + 0x38], edx
call fcn.10020e30
add esp, 8
push eax
call fcn.10046430
add esp, 8
push eax
call fcn.10020e30
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x1008a358
push ecx
push str.___Nodes_collected_
push 0x100aa188
call fcn.10020e30
add esp, 8
mov ecx, eax
call fcn.10045770
push eax
call fcn.10020e30
mov eax, dword [esi + 0x80]
add esp, 8
mov ebp, dword [esp + 0x24]
push eax
push 0x1008a374
push ebp
mov ecx, 0x100aa188
call fcn.10045770
push eax
call fcn.10020e30
add esp, 8
mov ecx, eax
call fcn.10045770
push str.___.2fs_
lea ecx, [esp + 0x70]
call fcn.10048940
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x24]
push eax
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], fcn.1003d540
mov dword [esp + 0x58], 0x100466b0
call fcn.100475f0
push eax
push 0x100aa188
call fcn.10045c80
add esp, 0x10
mov edi, eax
push 0xa
mov ecx, edi
call fcn.100213c0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi + 8]
add eax, edi
test cl, 6
jne 0x1005c025
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x1005c025
mov ebx, 4
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
test ebx, ebx
je 0x1005c046
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x1005c03e
or eax, 4
push 0
push eax
call fcn.1001de90
lea ecx, [esp + 0x6c]
mov dword [esp + 0x134], 0xffffffff
call fcn.10047970
mov eax, dword [esi + 0x80]
shr ebp, 2
cmp eax, ebp
jbe 0x1005c07e
mov eax, dword [esp + 0x18]
add eax, eax
cmp eax, dword [esi + 0x88]
ja 0x1005c078
or eax, 0xffffffff
mov dword [esi + 0x88], eax
mov ecx, dword [esi + 0x5c]
call fcn.1005e8a0
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4