Function at 0x4596c0
Capabilities:
Gather total-commander information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b898e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push esi
push 0x5cf0a0
push 0x5d2a20
push SysReAllocString
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 1
call fcn.00462980
mov edi, dword [esi + 0x10]
add esp, 0x10
mov ebx, SysReAllocString
test edi, edi
je 0x459850
lea eax, [edi - 1]
cmp edi, eax
jbe 0x459980
mov ecx, dword [esi + 0x14]
mov edx, esi
mov dword [ebp - 0x3c], ecx
cmp ecx, 8
jb 0x45975d
mov edx, dword [esi]
cmp word [edx + eax*2], 0x5c
je 0x459850
cmp edi, ecx
jae 0x459787
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 8
jb 0x45977b
mov eax, dword [esi]
mov dword [eax + edi*2], 0x5c
jmp 0x459850
mov eax, ebx
sub eax, edi
cmp eax, 1
jb 0x45997b
lea ebx, [edi + 1]
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4597a9
mov ebx, SysReAllocString
jmp 0x4597c7
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4597bf
mov ebx, SysReAllocString
jmp 0x4597c7
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
call fcn.004048d3
lea ecx, [edi + 1]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ecx
lea ecx, [edi + edi]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
lea ebx, [eax + ecx]
mov dword [ebp - 0x40], ebx
push ecx
cmp edi, 8
jb 0x459836
mov ebx, dword [esi]
push ebx
push eax
call fcn.0057e070
mov eax, dword [ebp - 0x40]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
cmp edi, 0x1000
jb 0x45982a
mov ecx, dword [ebx - 4]
add edi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x459985
mov ebx, ecx
push edi
push ebx
call fcn.0057b69e
add esp, 8
jmp 0x459846
push esi
push eax
call fcn.0057e070
add esp, 0xc
mov dword [ebx], 0x5c
mov eax, dword [ebp - 0x34]
mov ebx, SysReAllocString
mov dword [esi], eax
mov ecx, dword [esi + 0x10]
mov eax, ebx
sub eax, ecx
cmp eax, 0xc
jb 0x45997b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45986a
mov eax, dword [esi]
push 0xc
push 0x5d2a64
push ecx
push eax
push esi
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.0041d914
mov dword [ebp - 0x30], 3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0045a200
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4598e5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4598d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459985
push edx
push ecx
call fcn.0057b69e
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
je 0x4598f2
push 0xc
push 0x5d2a64
jmp 0x459956
mov ecx, dword [esi + 0x10]
sub ebx, ecx
cmp ebx, 0xe
jb 0x45997b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x459906
mov eax, dword [esi]
push 0xe
push 0x5d2a80
push ecx
push eax
push esi
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.0041d914
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0045a200
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004047c6
test bl, bl
je 0x45995d
push 0xe
push 0x5d2a80
mov ecx, esi
call fcn.0040657e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.004048ae
call fcn.004048b9
call fcn.00582360
int3