Function at 0x54d580
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.00546760
mov ecx, dword [esp + 0xf4]
add esp, 8
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.00546760
mov edx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xec]
push edx
push eax
call fcn.00546760
fild dword [esp + 0x24]
mov dword [esp + 0x80], eax
add esp, 8
fmul qword [0x56f4a8]
fcom qword [0x56f4b0]
fnstsw ax
test ah, 1
jne 0x54d63f
fld st(0)
jmp 0x54d645
fld qword [0x56f4b0]
fcomp qword [0x56f4b8]
fnstsw ax
test ah, 1
jne 0x54d65c
fstp st(0)
fld qword [0x56f4b8]
jmp 0x54d671
fcom qword [0x56f4b0]
fnstsw ax
test ah, 1
je 0x54d671
fstp st(0)
fld qword [0x56f4b0]
call fcn.00550f30
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.00546c20
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.0054ea50
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.0054ea50
mov eax, dword [esp + 0xfc]
add esp, 0x10
test byte [eax + 4], 8
je 0x54d730
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.005370e7
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.00546c00
mov eax, dword [esp + 0x104]
add esp, 0xc
test eax, eax
mov dword [esp + 0x7c], 0
jle 0x54de4f
lea ecx, [esp + 0x90]
push ecx
call fcn.0054eba0
add esp, 4
lea edx, [esp + 0xbc]
push edx
call fcn.0054eba0
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.00546cf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jle 0x54d846
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.0054ecc0
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 0x54d7f7
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x3c], eax
jle 0x54dbac
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.0054f0c0
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x54dba1
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 0x54d92c
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 0x54d952
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
cmp edx, eax
jne 0x54d968
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 0x54d968
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 0x54d981
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
sub eax, edx
cmp eax, ecx
jg 0x54db7d
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 0x54d9e7
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.005370e7
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 0x54da3a
mov ecx, dword [edx + eax*4]
mov edi, dword [edx + eax*4 + 4]
cmp ecx, edi
jge 0x54da3a
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 0x54db5b
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 0x54da77
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 0x54da9e
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 0x54dee6
test ecx, ecx
jne 0x54deac
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 0x54db2d
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.0054ed60
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 0x54da73
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 0x54d860
jmp 0x54dba1
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 0x54dbe3
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 0x54dbbc
mov ecx, dword [esp + 0x5c]
dec eax
cmp eax, ecx
jle 0x54dde7
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 0x54dc8d
mov edx, dword [esi + ecx*4]
cmp edx, 0xffffffff
je 0x54dc8b
mov eax, dword [esp + 0x44]
mov edx, dword [eax + ecx*4]
cmp edx, dword [eax + ecx*4 + 4]
jge 0x54dc87
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 0x54dca8
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x54dca8
cmp dword [esi + ecx*4], 0xffffffff
jne 0x54dca8
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 0x54ddc2
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 0x54dd14
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 0x54dd33
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 0x54dd7b
test edi, edi
jne 0x54dd7b
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 0x54dd9c
cmp dword [eax + ebx], 0
jle 0x54dd9c
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 0x54dd0c
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 0x54dc01
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xec]
test byte [eax + 4], 8
je 0x54de1b
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.005370e7
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 0x54de4f
cmp eax, dword [esp + 0x88]
je 0x54de4f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xf8]
inc eax
cmp eax, ecx
mov dword [esp + 0x7c], eax
jl 0x54d778
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x90]
push eax
push ecx
call fcn.0054ec10
mov esi, dword [esp + 0xf4]
add esp, 8
lea edx, [esp + 0xbc]
push edx
push esi
call fcn.0054ec10
mov edi, dword [esp + 0x24]
add esp, 8
push edi
push esi
call fcn.00546790
add esp, 8
push edi
push esi
call fcn.00546790
add esp, 8
push edi
push esi
call fcn.00546790
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 0x54db31
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.0054eef0
add esp, 0x10
jmp 0x54db35
test ecx, ecx
jle 0x54db31
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 0x54db31
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.0054ecc0
add esp, 0xc
jmp 0x54db35