Function at 0x5af750
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.005b0550
mov ecx, dword [esp + 0xd4]
add esp, 0x10
push eax
lea eax, [esp + 0x98]
push ebx
push eax
push ecx
call fcn.005b28c0
mov edx, dword [esp + 0xd4]
add esp, 0x10
push ebx
push edx
call fcn.005aa5d0
add esp, 8
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc4]
push ebx
push eax
call fcn.005aa5d0
mov ecx, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x80], eax
push ebx
push ecx
call fcn.005aa5d0
mov edx, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x88], eax
lea eax, [ebx + 1]
push eax
push edx
call fcn.005aa5d0
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xcc]
add esp, 8
test byte [eax + 4], 8
je 0x5af84e
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.0059aef1
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 [0x5d3bb0]
call fcn.005b4da0
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 0x5affbf
jmp 0x5af8ad
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.005b2a10
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.005aab60
add esp, 0xc
test ebp, ebp
jle 0x5af95d
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.005b2b30
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 0x5af913
mov ecx, dword [esp + 0xc4]
test byte [ecx + 0x28], 1
je 0x5af97f
lea eax, [ebp + ebp*4]
cmp eax, 0x190
jl 0x5af994
mov dword [esp + 0x4c], 0x190
jmp 0x5af998
lea eax, [ebp + ebp]
cmp eax, 0x12c
jl 0x5af994
mov dword [esp + 0x4c], 0x12c
jmp 0x5af998
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 0x5afd35
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.005b2f30
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
mov dword [esp + 0x58], ecx
je 0x5afd31
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 0x5afd31
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 0x5afa85
jne 0x5afa6d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
cmp eax, edx
jl 0x5afa85
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
sub edx, eax
mov eax, dword [esp + 0x4c]
cmp edx, eax
jg 0x5afd1c
jmp 0x5afa9c
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 0x5afc9e
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 0x5afb58
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 0x5afc7a
cmp ecx, ebx
jne 0x5afc7a
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 0x5afc55
mov edx, dword [esp + 0x60]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x54], ecx
jmp 0x5afbe3
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [eax + edx*4]
lea ecx, [edx*4]
cmp eax, 2
je 0x5afc03
mov edx, dword [esi + ecx]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ebp*8]
add dword [ecx + eax*4], edx
jmp 0x5afc37
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.005b2e70
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 0x5afbdf
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.005b2b30
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 0x5afb25
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 0x5afcec
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.0059aef1
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 0x5af9df
jmp 0x5afd31
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 0x5aff43
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 0x5afe2d
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 0x5afe01
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 0x5afe0f
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 0x5afdcd
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 4]
mov edx, dword [ecx]
cmp eax, edx
mov dword [esp + 0x28], eax
jge 0x5aff1e
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 0x5afe5a
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 0x5afef8
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 0x5afee2
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 0x5afec1
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 0x5afe56
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 0x5afd65
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xc4]
test byte [eax + 4], 8
je 0x5aff71
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.0059aef1
mov ecx, dword [esp + 0x68]
add esp, 0x18
jmp 0x5aff75
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 0x5affa7
cmp ecx, 0xffffffff
je 0x5affbb
cmp ebx, dword [esp + 0x90]
jge 0x5affbb
mov eax, dword [esp + 0xd0]
inc ebp
cmp ebp, eax
mov dword [esp + 0x5c], ebp
jl 0x5af8a2
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0xc4]
lea ecx, [esp + 0x94]
push ecx
push esi
call fcn.005b2a80
add esp, 8
lea eax, [ebx + 1]
push eax
push esi
call fcn.005aa600
add esp, 8
push ebx
push esi
call fcn.005aa600
add esp, 8
push ebx
push esi
call fcn.005aa600
add esp, 8
push ebx
push esi
call fcn.005aa600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret