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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xf0]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x20]
mov ebp, dword [edi + 0x4c]
mov ebx, dword [edi + 0x50]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x1c]
mov esi, dword [edi + 0x44]
mov dword [esp + 0x6c], edx
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x48]
push eax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x40], ecx
call fcn.005aa5d0
mov ecx, dword [esp + 0xf4]
add esp, 8
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.005aa5d0
mov edx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xec]
push edx
push eax
call fcn.005aa5d0
fild dword [esp + 0x24]
mov dword [esp + 0x80], eax
add esp, 8
fmul qword [0x5d3bc8]
fcom qword [0x5d3bd0]
fnstsw ax
test ah, 1
jne 0x5b14af
fld st(0)
jmp 0x5b14b5
fld qword [0x5d3bd0]
fcomp qword [0x5d3bd8]
fnstsw ax
test ah, 1
jne 0x5b14cc
fstp st(0)
fld qword [0x5d3bd8]
jmp 0x5b14e1
fcom qword [0x5d3bd0]
fnstsw ax
test ah, 1
je 0x5b14e1
fstp st(0)
fld qword [0x5d3bd0]
call fcn.005b4da0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x84], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add eax, edx
mov ecx, dword [edi + 0x24]
shl eax, 1
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x88], eax
call fcn.005aaa90
mov ecx, dword [edi + 0x24]
mov edx, dword [esp + 0x24]
add esp, 8
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x94]
push edx
push eax
push ecx
call fcn.005b28c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0xbc]
push edx
mov edx, dword [esp + 0xf0]
push eax
push ecx
push edx
call fcn.005b28c0
mov eax, dword [esp + 0xfc]
add esp, 0x10
test byte [eax + 4], 8
je 0x5b15a0
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 8]
push ecx
push edx
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push str.Partitions:___6d__6d__T__6d__6d___Nv_Nb__6d__6d_._ICut:__6d_n
call fcn.0059aef1
add esp, 0x20
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call fcn.005aaa70
mov eax, dword [esp + 0x104]
add esp, 0xc
test eax, eax
mov dword [esp + 0x7c], 0
jle 0x5b1cbf
lea ecx, [esp + 0x90]
push ecx
call fcn.005b2a10
add esp, 4
lea edx, [esp + 0xbc]
push edx
call fcn.005b2a10
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x5c], eax
mov edx, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xf8]
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [eax]
push 1
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x40]
push edx
push eax
mov dword [esp + 0x1c], eax
call fcn.005aab60
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jle 0x5b16b6
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [ecx + eax*4]
lea eax, [ecx*4]
mov edx, dword [eax + ebx]
sub edx, dword [eax + ebp]
push edx
push ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea ecx, [esp + eax*4 + 0x98]
push ecx
call fcn.005b2b30
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
add esp, 0xc
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], eax
jne 0x5b1667
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x3c], eax
jle 0x5b1a1c
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov edi, dword [ecx + 4]
mov eax, dword [eax]
sub edx, edi
mov edi, dword [ecx]
xor ecx, ecx
sub eax, edi
cmp eax, edx
setge cl
mov edi, ecx
lea eax, [edi + 1]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
lea edx, [edi + edi*4]
mov dword [esp + 0x18], eax
lea eax, [edi + edx*2]
lea ecx, [esp + eax*4 + 0x90]
push ecx
call fcn.005b2f30
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x5b1a11
mov edx, dword [ebp + eax*4]
mov ecx, dword [ebx + eax*4]
sub edx, ecx
mov ecx, dword [esp + 0x54]
add ecx, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add dword [ecx + eax*4], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + edx*4]
mov edx, dword [ecx + edi*4]
sub edx, eax
mov eax, dword [esp + 0x54]
mov dword [ecx + edi*4], edx
mov dword [esp + 0x40], edx
cmp eax, dword [esp + 0x58]
jge 0x5b179c
mov edx, dword [esp + 0xf4]
mov eax, dword [edx]
mov edx, dword [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
add edx, eax
mov eax, dword [esp + 0x2c]
cmp eax, edx
jle 0x5b17c2
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
cmp edx, eax
jne 0x5b17d8
mov edx, dword [esp + 0xf4]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x64]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jge 0x5b17d8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], edx
jmp 0x5b17f1
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
sub eax, edx
cmp eax, ecx
jg 0x5b19ed
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0xec]
mov dword [ecx], eax
test byte [edx + 4], 0x20
je 0x5b1857
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + eax*4]
push edx
mov edx, dword [ebp + eax*4]
sub ecx, edx
push ecx
push edi
push eax
push str.Moved__6d_from__d.___3d__3d___5d___4d__4d__n
call fcn.0059aef1
mov eax, dword [esp + 0x48]
add esp, 0x20
mov ecx, dword [ebp + eax*4]
mov edx, dword [ebx + eax*4]
mov dword [ebp + eax*4], edx
mov edx, dword [esp + 0x44]
test ecx, ecx
mov dword [ebx + eax*4], ecx
jne 0x5b18aa
mov ecx, dword [edx + eax*4]
mov edi, dword [edx + eax*4 + 4]
cmp ecx, edi
jge 0x5b18aa
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov edx, dword [esi + eax*4]
dec ecx
mov dword [esp + 0x10], ecx
mov edi, dword [edi + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [ecx + edx*4], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edx*4]
mov edx, dword [esi + eax*4]
mov dword [esi + ecx*4], edx
mov edx, dword [esp + 0x44]
mov dword [esi + eax*4], 0xffffffff
mov ecx, dword [edx + eax*4]
mov edi, dword [edx + eax*4 + 4]
cmp ecx, edi
mov dword [esp + 0x60], ecx
jge 0x5b19cb
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
sub edx, eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], ecx
jmp 0x5b18e7
mov edx, dword [esp + 0x40]
mov edx, dword [edx + ecx]
mov ecx, dword [esp + 0x18]
lea eax, [edx*4]
mov ebp, dword [eax + ebp]
mov edi, dword [eax + ebx]
sub edi, ebp
mov ebp, dword [esp + 0x30]
cmp ecx, dword [eax + ebp]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [ecx]
je 0x5b190e
neg ebp
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax + ecx]
add ecx, ebp
mov ebp, dword [esp + 0x34]
mov dword [eax + ebp], ecx
mov ecx, dword [esp + 0x2c]
mov ebp, dword [eax + ebx]
sub ebp, ecx
mov dword [eax + ebx], ebp
mov ecx, ebp
mov ebp, dword [eax + esi]
cmp ebp, 0xffffffff
je 0x5b1d56
test ecx, ecx
jne 0x5b1d1c
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
sub ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
mov dword [ebx + ebp*4], ecx
mov ecx, dword [esp + 0x24]
mov ebx, dword [eax + esi]
mov ecx, dword [ecx]
mov dword [esi + ecx*4], ebx
mov ecx, dword [esp + 0x50]
mov dword [eax + esi], 0xffffffff
cmp dword [eax + ecx], 0xffffffff
jne 0x5b199d
push edi
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [eax + edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea eax, [esp + edx*4 + 0x98]
push eax
call fcn.005b2bd0
add esp, 0xc
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
inc eax
add ecx, 4
cmp eax, dword [edi + edx*4 + 4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x4c], ecx
jl 0x5b18e3
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], edx
jl 0x5b16d0
jmp 0x5b1a11
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
add eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x18]
sub dword [ecx + eax*4], edx
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0xf0]
test eax, eax
jle 0x5b1a53
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov edx, dword [esp + 0x50]
mov dword [edx + ecx*4], 0xffffffff
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add edx, 4
dec ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ecx
jne 0x5b1a2c
mov ecx, dword [esp + 0x5c]
dec eax
cmp eax, ecx
jle 0x5b1c57
mov edx, dword [esp + 0x68]
lea edx, [edx + eax*4]
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [edx + ecx*4]
inc eax
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
mov edi, eax
mov eax, dword [esp + 0x30]
sub edi, edx
mov dword [eax + ecx*4], edi
mov eax, dword [ebp + ecx*4]
mov edx, dword [ebx + ecx*4]
mov dword [esp + 0x64], edi
mov dword [ebp + ecx*4], edx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [ebx + ecx*4], eax
jne 0x5b1afd
mov edx, dword [esi + ecx*4]
cmp edx, 0xffffffff
je 0x5b1afb
mov eax, dword [esp + 0x44]
mov edx, dword [eax + ecx*4]
cmp edx, dword [eax + ecx*4 + 4]
jge 0x5b1af7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + ecx*4]
dec edx
mov dword [esp + 0x10], edx
mov edx, dword [eax + edx*4]
mov dword [eax + ecx*4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + ecx*4]
mov dword [esi + edx*4], eax
mov dword [esi + ecx*4], 0xffffffff
jmp 0x5b1b18
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x5b1b18
cmp dword [esi + ecx*4], 0xffffffff
jne 0x5b1b18
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [edx + eax*4], ecx
mov dword [esi + ecx*4], eax
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x20]
add dword [eax + edi*4], edx
lea eax, [edi + 1]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x20]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x48]
mov edx, dword [edx + ecx*4]
sub dword [eax], edx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ecx*4]
cmp eax, dword [edx + ecx*4 + 4]
mov dword [esp + 0x60], eax
jge 0x5b1c32
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x6c]
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
sub eax, edx
mov dword [esp + 0x40], eax
jmp 0x5b1b84
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + eax]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
shl eax, 2
cmp edi, dword [eax + edx]
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
je 0x5b1ba3
neg edx
mov edi, dword [eax + ebp]
add edi, edx
mov dword [eax + ebp], edi
mov edi, dword [eax + ebx]
sub edi, edx
mov dword [eax + ebx], edi
mov edx, dword [eax + esi]
cmp edx, 0xffffffff
je 0x5b1beb
test edi, edi
jne 0x5b1beb
mov edi, dword [esp + 0x10]
dec edi
sub ecx, 4
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx]
mov dword [edi + edx*4], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + esi]
mov edx, dword [ecx]
mov dword [esi + edx*4], edi
mov dword [eax + esi], 0xffffffff
cmp dword [eax + esi], 0xffffffff
jne 0x5b1c0c
cmp dword [eax + ebx], 0
jle 0x5b1c0c
mov edx, dword [esp + 0x4c]
mov dword [ecx], edx
mov edx, dword [esp + 0x10]
mov dword [eax + esi], edx
inc edx
mov dword [esp + 0x10], edx
add ecx, 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x44]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
inc eax
cmp eax, dword [edi + edx*4 + 4]
mov dword [esp + 0x60], eax
jl 0x5b1b7c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
sub ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
jne 0x5b1a71
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xec]
test byte [eax + 4], 8
je 0x5b1c8b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x68]
push ecx
push str._tMinimum_cut:__6d_at__5d__PWGTS:___6d__6d___NBND:__6d_n
call fcn.0059aef1
mov ecx, dword [esp + 0x74]
add esp, 0x18
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
cmp ecx, 0xffffffff
mov dword [edi + 0x30], eax
mov dword [edi + 0x40], edx
je 0x5b1cbf
cmp eax, dword [esp + 0x88]
je 0x5b1cbf
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xf8]
inc eax
cmp eax, ecx
mov dword [esp + 0x7c], eax
jl 0x5b15e8
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x90]
push eax
push ecx
call fcn.005b2a80
mov esi, dword [esp + 0xf4]
add esp, 8
lea edx, [esp + 0xbc]
push edx
push esi
call fcn.005b2a80
mov edi, dword [esp + 0x24]
add esp, 8
push edi
push esi
call fcn.005aa600
add esp, 8
push edi
push esi
call fcn.005aa600
add esp, 8
push edi
push esi
call fcn.005aa600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret
mov ebp, dword [esp + 0x50]
cmp dword [eax + ebp], 0xffffffff
jne 0x5b19a1
mov ebp, dword [esp + 0x34]
sub ecx, dword [eax + ebp]
push ecx
mov ecx, dword [esp + 0x34]
push edi
push edx
mov eax, dword [eax + ecx]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea ecx, [esp + eax*4 + 0x9c]
push ecx
call fcn.005b2d60
add esp, 0x10
jmp 0x5b19a5
test ecx, ecx
jle 0x5b19a1
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov dword [ecx], edx
add ecx, 4
mov dword [eax + esi], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x50]
inc edi
mov dword [esp + 0x10], edi
cmp dword [eax + ecx], 0xffffffff
jne 0x5b19a1
mov ebp, dword [esp + 0x34]
mov ecx, dword [eax + ebx]
sub ecx, dword [eax + ebp]
push ecx
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [eax + edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea eax, [esp + edx*4 + 0x98]
push eax
call fcn.005b2b30
add esp, 0xc
jmp 0x5b19a5