Function at 0xbff722e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
je 0xbff723a1
mov edi, dword [esp + 0x220]
test edi, edi
je 0xbff723a1
mov eax, dword [esp + 0x224]
test eax, eax
je 0xbff723a1
mov al, byte [esi]
test al, al
je 0xbff723a1
mov cl, byte [esi + 1]
lea ebp, [esi + 1]
test cl, cl
je 0xbff723a1
mov dl, byte [esi + 2]
lea ebx, [esi + 2]
test dl, dl
je 0xbff723a1
mov cl, byte [esi + 3]
test cl, cl
jne 0xbff7235d
mov byte [edi], al
mov al, byte [ebp]
mov byte [edi + 1], al
mov cl, byte [ebx]
mov byte [edi + 2], cl
mov byte [edi + 3], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
cmp al, 0x5c
jne 0xbff72418
cmp byte [ebp], 0x5c
jne 0xbff72418
cmp dl, 0x2e
jne 0xbff72379
cmp cl, 0x5c
je 0xbff72383
cmp dl, 0x3f
jne 0xbff723ae
cmp cl, 0x5c
jne 0xbff723ae
mov al, byte [esi + 4]
add esi, 4
test al, al
je 0xbff723a1
mov al, byte [esi + 1]
lea ebp, [esi + 1]
cmp al, 0x3a
jne 0xbff723a1
mov al, byte [esi + 2]
lea ebx, [esi + 2]
cmp al, 0x5c
je 0xbff72418
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push 0x5c
push ebx
call fcn.bff734a0
add esp, 8
test eax, eax
je 0xbff723a1
push 6
push str.pipe_
push eax
call fcn.bff790a0
add esp, 0xc
test eax, eax
je 0xbff723a1
mov ebx, dword [esp + 0x224]
mov edi, dword [esp + 0x220]
lea edx, [ebx - 1]
push edx
push esi
push edi
call fcn.bff73560
push edi
mov byte [edi + ebx - 1], 0
call fcn.bff7aef5
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 3
cmp eax, ecx
pop edi
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x208
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ebp], 0x3a
je 0xbff724db
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0xbff723a1
cmp eax, 0x104
jae 0xbff723a1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
cmp al, 0x2e
mov edx, ecx
jne 0xbff7248c
cmp byte [ebp], 0x5c
jne 0xbff7247a
mov esi, ebx
jmp 0xbff7248c
cmp al, 0x2e
jne 0xbff7248c
cmp byte [ebp], 0x2e
jne 0xbff7248c
cmp byte [ebx], 0x5c
jne 0xbff7248c
add esi, 3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
cmp eax, 0x104
jae 0xbff723a1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x10], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
test esi, esi
mov eax, esi
je 0xbff724f6
inc eax
push 0x2f
push eax
call fcn.bff734a0
add esp, 8
test eax, eax
je 0xbff724f6
mov byte [eax], 0x5c
jmp 0xbff724e1
push 0x7e
push esi
call fcn.bff734a0
add esp, 8
test eax, eax
je 0xbff7252a
lea eax, [esp + 0x114]
push 0x104
push eax
push esi
call fcn.bff727a0
add esp, 0xc
test eax, eax
je 0xbff723a1
lea esi, [esp + 0x114]
mov edi, dword [esp + 0x224]
lea ecx, [edi - 1]
push ecx
push esi
mov esi, dword [esp + 0x228]
push esi
call fcn.bff73560
add esp, 0xc
mov byte [esi + edi - 1], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret