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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov ebp, dword [esp + 0xc0]
push esi
push edi
mov edx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x44]
mov edi, dword [ebp + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0x38]
push esi
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x5c]
push ecx
push eax
push ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], edx
call fcn.0054c6e0
mov ecx, dword [esp + 0xd4]
add esp, 0x10
push eax
lea eax, [esp + 0x98]
push ebx
push eax
push ecx
call fcn.0054ea50
mov edx, dword [esp + 0xd4]
add esp, 0x10
push ebx
push edx
call fcn.00546760
add esp, 8
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc4]
push ebx
push eax
call fcn.00546760
mov ecx, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x80], eax
push ebx
push ecx
call fcn.00546760
mov edx, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x88], eax
lea eax, [ebx + 1]
push eax
push edx
call fcn.00546760
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xcc]
add esp, 8
test byte [eax + 4], 8
je 0x54b9de
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
push str.Partitions_N1:___6d__6d__Nv_Nb__6d__6d_._ISep:__6d_n
call fcn.005370e7
add esp, 0x18
mov ecx, dword [edi]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
add edx, ecx
add edx, eax
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fmul dword [esp + 0xcc]
fmul dword [0x56f490]
call fcn.00550f30
mov edx, dword [edi]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 4]
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x5c], 0
setl cl
mov eax, ecx
mov ecx, dword [esp + 0xd0]
test ecx, ecx
jle 0x54c14f
jmp 0x54ba3d
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xc8]
mov ebx, eax
inc eax
cdq
xor eax, edx
mov dword [esp + 0x68], ebx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x24], eax
call fcn.0054eba0
mov eax, dword [ebp + 0x30]
mov ebp, dword [ebp + 0x40]
add esp, 4
mov dword [esp + 0x64], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
push 1
push eax
push ebp
mov dword [esp + 0x5c], 0xffffffff
call fcn.00546cf0
add esp, 0xc
test ebp, ebp
jle 0x54baed
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
lea edx, [ebx + eax*2]
mov eax, dword [esi + eax*4]
sub eax, dword [ecx + edx*4]
mov edx, dword [esp + 0x40]
push eax
lea eax, [esp + 0x98]
push edx
push eax
call fcn.0054ecc0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esp, 0xc
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x54baa3
mov ecx, dword [esp + 0xc4]
test byte [ecx + 0x28], 1
je 0x54bb0f
lea eax, [ebp + ebp*4]
cmp eax, 0x190
jl 0x54bb24
mov dword [esp + 0x4c], 0x190
jmp 0x54bb28
lea eax, [ebp + ebp]
cmp eax, 0x12c
jl 0x54bb24
mov dword [esp + 0x4c], 0x12c
jmp 0x54bb28
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x14], 0
mov dword [ecx], 0
mov eax, dword [edi]
sub eax, dword [edi + 4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x24], eax
jle 0x54bec5
mov edx, dword [esp + 0x80]
add ecx, 4
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x94]
push eax
call fcn.0054f0c0
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
mov dword [esp + 0x58], ecx
je 0x54bec1
mov eax, dword [esp + 0x20]
mov edx, dword [esi + ecx*4]
add edx, dword [edi + eax*4]
mov eax, dword [esp + 0x8c]
cmp edx, eax
jg 0x54bec1
mov eax, dword [esp + 0x18]
lea edx, [ebx + ecx*2]
lea eax, [eax + edx*4]
mov dword [esp + 0x40], eax
mov edx, dword [eax]
mov eax, dword [esi + ecx*4]
sub edx, eax
mov eax, dword [edi + 8]
add eax, edx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x40]
mov edx, dword [edi + ebx*4]
mov eax, dword [eax]
sub eax, edx
mov edx, dword [esi + ecx*4]
add eax, edx
mov edx, dword [esp + 0x20]
add eax, dword [edi + edx*4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
cmp eax, edx
jl 0x54bc15
jne 0x54bbfd
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
cmp eax, edx
jl 0x54bc15
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
sub edx, eax
mov eax, dword [esp + 0x4c]
cmp edx, eax
jg 0x54beac
jmp 0x54bc2c
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
dec ebp
mov edx, dword [edx + ecx*4]
mov dword [esp + 0x44], ebp
lea ebp, [eax + ebp*4]
mov dword [esp + 0x10], ebp
mov ebp, dword [ebp]
mov dword [eax + edx*4], ebp
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov ebp, dword [eax + ecx*4]
mov dword [eax + edx*4], ebp
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esp + 0x20]
mov edx, dword [esi + ecx*4]
mov ebp, dword [edi + eax*4]
add ebp, edx
mov edx, dword [esp + 0x34]
mov dword [edi + eax*4], ebp
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + ecx*4]
mov ebp, dword [eax + ecx*4 + 4]
cmp edx, ebp
mov dword [esp + 0x28], edx
jge 0x54be2e
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x14]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
lea eax, [ecx + edx*4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ebp, dword [ecx]
mov ecx, dword [eax + ebp*4]
cmp ecx, 2
jne 0x54bce8
mov eax, dword [esp + 0x20]
lea ecx, [eax + ebp*2]
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov ecx, dword [esi + ecx*4]
add ebp, ecx
mov dword [eax], ebp
jmp 0x54be0a
cmp ecx, ebx
jne 0x54be0a
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov dword [edx], ebp
mov edx, dword [esp + 0x3c]
mov dword [edx + ebp*4], ecx
inc ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x78]
inc edx
mov dword [ecx], ebp
add ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x78], ecx
mov dword [eax + ebp*4], 2
mov ecx, dword [esi + ebp*4]
mov edx, dword [edi + ebx*4]
sub edx, ecx
mov dword [edi + ebx*4], edx
mov edx, dword [esp + 0x18]
lea ecx, [edx + ebp*8]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov ecx, dword [edx + ebp*4]
cmp ecx, dword [edx + ebp*4 + 4]
mov dword [esp + 0x74], ecx
jge 0x54bde5
mov edx, dword [esp + 0x60]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x54], ecx
jmp 0x54bd73
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [eax + edx*4]
lea ecx, [edx*4]
cmp eax, 2
je 0x54bd93
mov edx, dword [esi + ecx]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ebp*8]
add dword [ecx + eax*4], edx
jmp 0x54bdc7
mov ecx, dword [esi + ecx]
lea eax, [ebx + edx*2]
mov ebx, dword [esp + 0x18]
lea ebx, [ebx + eax*4]
mov eax, dword [ebx]
sub ecx, eax
sub eax, dword [esi + ebp*4]
mov dword [ebx], eax
mov ebx, dword [esi + ebp*4]
mov eax, ecx
add eax, ebx
push eax
push ecx
lea ecx, [esp + 0x9c]
push edx
push ecx
call fcn.0054f000
mov ebx, dword [esp + 0x78]
add esp, 0x10
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
inc eax
add ecx, 4
mov dword [esp + 0x74], eax
cmp eax, dword [edx + ebp*4 + 4]
mov dword [esp + 0x54], ecx
jl 0x54bd6f
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + ebp*4]
lea eax, [edx + ebp*8]
mov edx, dword [eax + ebx*4]
lea eax, [esp + 0x94]
sub ecx, edx
push ecx
push ebp
push eax
call fcn.0054ecc0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add eax, 4
inc edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], edx
cmp edx, dword [ecx + eax*4 + 4]
jl 0x54bcb5
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x44]
mov dword [eax], edx
mov edx, dword [esp + 0xc4]
test byte [edx + 4], 0x20
je 0x54be7c
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + ecx*4]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [esp + 0x54]
push eax
sub eax, dword [edx]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push str.Moved__6d_to__3d__Gain:__5d___5d___t__5d__5d__5d____3d__2d__n
call fcn.005370e7
add esp, 0x28
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, 4
inc eax
add edx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
mov dword [esp + 0x1c], edx
jl 0x54bb6f
jmp 0x54bec1
mov eax, dword [esi + ecx*4]
lea edx, [ebx + ecx*2]
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + edx*4]
mov ecx, dword [edi + 8]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
dec eax
cmp eax, ecx
jle 0x54c0d3
mov edx, dword [esp + 0x80]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x88]
lea edx, [edx + eax*4 + 4]
sub eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov edx, dword [esi + eax*4]
add dword [edi + 8], edx
mov edx, dword [esi + eax*4]
sub dword [edi + ecx*4], edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov dword [ecx + eax*4], 2
mov ecx, dword [esp + 0x3c]
mov dword [edx + ebp*4], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], ebp
inc ebp
lea ecx, [edx + eax*8]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov ecx, dword [edx + eax*4]
cmp ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x28], ecx
jge 0x54bfbd
mov edx, dword [esp + 0x60]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + edx]
cmp ecx, 2
jne 0x54bf91
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx]
lea edx, [edx + ecx*2]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + edx*4]
mov edx, dword [esi + eax*4]
sub dword [ecx], edx
jmp 0x54bf9f
mov eax, dword [esp + 0x68]
mov edx, dword [esi + edx]
add dword [eax + ecx*4], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add edx, 4
inc ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
cmp ecx, dword [edx + eax*4 + 4]
jl 0x54bf5d
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 4]
mov edx, dword [ecx]
cmp eax, edx
mov dword [esp + 0x28], eax
jge 0x54c0ae
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x48]
lea eax, [edx + eax*4]
lea ecx, [ecx + ebp*4]
mov dword [esp + 0x30], eax
jmp 0x54bfea
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
sub ecx, 4
mov dword [esp + 0x40], ecx
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [edx + eax*4], ebx
mov edx, dword [esi + eax*4]
add dword [edi + ebx*4], edx
mov edx, dword [esi + eax*4]
sub dword [edi + 8], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [ecx]
dec ebp
mov edx, dword [edx + eax*4]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x48]
mov dword [ebp + edx*4], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edx]
mov ebp, dword [ecx + eax*4]
mov dword [ecx + edx*4], ebp
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4], 0xffffffff
mov ecx, dword [edx + eax*4]
mov ebp, dword [edx + eax*4 + 4]
cmp ecx, ebp
jge 0x54c088
mov edx, dword [esp + 0x60]
lea edx, [edx + ecx*4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
mov edx, dword [edx]
cmp dword [ebp + edx*4], 2
jne 0x54c072
mov ebp, dword [esp + 0x18]
lea edx, [ebx + edx*2]
lea edx, [ebp + edx*4]
mov ebp, dword [esi + eax*4]
add dword [edx], ebp
mov edx, dword [esp + 0x1c]
inc ecx
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
cmp ecx, dword [edx + eax*4 + 4]
jl 0x54c051
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
inc eax
mov edx, dword [ecx]
add ebp, 4
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x44]
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x54bfe6
mov eax, dword [esp + 0x10]
sub ecx, 4
sub eax, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
dec eax
mov dword [esp + 0x54], eax
jne 0x54bef5
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xc4]
test byte [eax + 4], 8
je 0x54c101
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ebx, dword [esp + 0x64]
push ebp
push edx
push eax
push ecx
push ebx
push str._tMinimum_sep:__6d_at__5d__PWGTS:___6d__6d___NBND:__6d_n
call fcn.005370e7
mov ecx, dword [esp + 0x68]
add esp, 0x18
jmp 0x54c105
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0xc8]
mov dword [eax + 0x40], ebp
mov ebp, dword [esp + 0x5c]
mov dword [eax + 0x30], ebx
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x54c137
cmp ecx, 0xffffffff
je 0x54c14b
cmp ebx, dword [esp + 0x90]
jge 0x54c14b
mov eax, dword [esp + 0xd0]
inc ebp
cmp ebp, eax
mov dword [esp + 0x5c], ebp
jl 0x54ba32
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0xc4]
lea ecx, [esp + 0x94]
push ecx
push esi
call fcn.0054ec10
add esp, 8
lea eax, [ebx + 1]
push eax
push esi
call fcn.00546790
add esp, 8
push ebx
push esi
call fcn.00546790
add esp, 8
push ebx
push esi
call fcn.00546790
add esp, 8
push ebx
push esi
call fcn.00546790
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret