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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
push str.BisectGraph:_bestwhere
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
call fcn.005aa980
add esp, 8
mov dword [esp + 0x30], eax
push str.BisectGraph:_queue
push ebx
call fcn.005aa980
add esp, 8
mov dword [esp + 0x18], eax
push str.BisectGraph:_touched
push ebx
call fcn.005aa980
add esp, 8
mov dword [esp + 0x10], eax
push esi
push ebx
call fcn.005aaad0
mov ecx, eax
add esp, 8
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], eax
sub ecx, eax
fild dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
fmul dword [esp + 0x78]
call fcn.005b4da0
fld dword [esp + 0x78]
fdivr qword [0x5d3ba8]
mov dword [esp + 0x68], eax
fimul dword [esp + 0x50]
call fcn.005b4da0
lea edx, [ebx + ebx*4 + 3]
push str.GrowBisectionNode:_graph__rdata
push edx
mov dword [esp + 0x68], eax
call fcn.005aa980
lea ecx, [eax + ebx*4 + 0xc]
mov dword [ebp + 4], eax
mov dword [ebp + 0x44], ecx
lea ecx, [eax + ebx*8 + 0xc]
mov dword [esp + 0x50], ecx
mov dword [ebp + 0x48], ecx
lea ecx, [ebx + 1]
mov dword [ebp + 0x3c], eax
lea edi, [eax + 0xc]
add esp, 8
lea edx, [ecx + ecx*2]
mov dword [ebp + 0x38], edi
mov dword [esp + 0x1c], edi
lea ecx, [eax + edx*4]
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x4c], ecx
mov ecx, ebx
shl ecx, 4
lea edx, [ecx + eax + 0xc]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x50], edx
mov edx, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ebx, dword [edx]
setg al
dec eax
and al, 0xfb
add eax, 9
test eax, eax
mov dword [esp + 0x28], eax
jle 0x5ad190
mov eax, dword [esp + 0x10]
push eax
push 0
push ebx
call fcn.005aaa70
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x54], 0
lea esi, [ecx + edx]
push edi
mov edi, 1
push edi
push ebx
call fcn.005aaa70
add esp, 0xc
call fcn.00590a08
sar eax, 3
cdq
idiv ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edi
mov dword [eax], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [eax + edx*4], edi
mov eax, dword [esp + 0x28]
lea edx, [ebx - 1]
cmp eax, edi
mov dword [esp + 0x14], edx
jl 0x5ad0e7
cmp ecx, dword [esp + 0x20]
jne 0x5ad00f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ad0e7
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5ad0e7
call fcn.00590a08
sar eax, 3
cdq
idiv dword [esp + 0x14]
xor eax, eax
test ebx, ebx
jle 0x5acfeb
mov ecx, dword [esp + 0x10]
cmp dword [ecx], 0
jne 0x5acfe3
test edx, edx
je 0x5acfeb
dec edx
inc eax
add ecx, 4
cmp eax, ebx
jl 0x5acfd9
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], 1
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [edx + eax*4], 1
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov edx, esi
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x40], edi
sub edx, dword [eax + edi*4]
mov dword [esp + 0x44], ecx
cmp edx, dword [esp + 0x60]
jge 0x5ad03b
mov dword [esp + 0x24], 1
jmp 0x5acfa4
mov edx, dword [esp + 0x1c]
mov dword [edx + edi*4], 0
mov eax, dword [eax + edi*4]
mov edx, dword [esp + 0x54]
sub esi, eax
add edx, eax
mov eax, dword [esp + 0x68]
cmp esi, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
jle 0x5ad0e7
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0
mov edx, dword [eax + edi*4]
cmp edx, dword [eax + edi*4 + 4]
jge 0x5acfa4
mov eax, dword [esp + 0x3c]
lea esi, [eax + edx*4]
mov eax, dword [esi]
mov ebp, dword [esp + 0x10]
cmp dword [ebp + eax*4], 0
lea ecx, [eax*4]
jne 0x5ad0c8
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [ebp + edi*4], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x74]
inc edi
mov dword [eax + ecx], 1
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
jmp 0x5ad0cc
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x34]
inc edx
add esi, 4
cmp edx, dword [ecx + edi*4 + 4]
jl 0x5ad085
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
jmp 0x5acfa4
mov edi, dword [esp + 0x70]
push ebp
push edi
call fcn.005ac5d0
mov edx, dword [esp + 0x80]
add esp, 8
lea eax, [esp + 0x4c]
push edx
push eax
push ebp
push edi
call fcn.005b1dc0
add esp, 0x10
lea ecx, [esp + 0x4c]
push 4
push ecx
push ebp
push edi
call fcn.005b13f0
mov ecx, dword [ebp + 0x40]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x5ad142
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov esi, dword [esp + 0x1c]
inc eax
add ecx, 4
mov dword [esi + edx*4], 2
mov edx, dword [ebp + 0x40]
cmp eax, edx
jl 0x5ad12a
push ebp
push edi
call fcn.005ac150
mov eax, dword [esp + 0x80]
add esp, 8
push 6
push eax
push ebp
push edi
call fcn.005ae0e0
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp ecx, eax
jle 0x5ad17b
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov dword [esp + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
dec eax
test eax, eax
mov dword [esp + 0x28], eax
jg 0x5acf36
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x70]
mov dword [ebp + 0x30], ecx
mov ecx, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.005ac150
add esp, 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push 0
push eax
push ecx
push edx
call fcn.005aaa20
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret