Function at 0x5d9cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebp
lea eax, [esp + 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x108]
push ecx
call fcn.0057f014
mov ecx, dword [esp + 0x214]
xor ebp, ebp
add esp, 4
cmp ecx, ebp
jne 0x5d9d20
lea edx, [esp + 0x108]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop ebp
add esp, 0x208
ret
mov al, byte [ecx]
cmp al, 0x5c
push esi
mov dword [esp + 8], ebp
jne 0x5d9d30
cmp byte [ecx + 1], al
je 0x5d9d39
cmp al, 0x2f
jne 0x5d9d52
cmp byte [ecx + 1], al
jne 0x5d9d52
mov byte [edi], 0x5c
mov byte [edi + 1], 0
mov dword [esp + 8], 2
mov esi, 1
jmp 0x5d9dd3
cmp al, 0x5c
je 0x5d9e2c
cmp al, 0x2f
je 0x5d9e2c
cmp byte [ecx + 1], 0x3a
jne 0x5d9da0
cmp al, 0x61
jl 0x5d9d78
cmp al, 0x7a
jg 0x5d9d78
movsx eax, al
sub eax, 0x20
jmp 0x5d9d7b
movsx eax, al
mov byte [edi], al
mov al, byte [ecx + 1]
mov byte [edi + 1], al
mov byte [edi + 2], 0
cmp byte [ecx + 2], 0x5c
mov esi, 2
mov dword [esp + 8], esi
jne 0x5d9dd3
mov dword [esp + 8], 3
jmp 0x5d9dd3
lea ecx, [esp + 0x10c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov al, byte [esi + edi - 1]
cmp al, 0x5c
je 0x5d9dc4
cmp al, 0x2f
jne 0x5d9dcc
mov byte [esi + edi - 1], 0
sub esi, 1
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 8]
mov al, byte [edx + ecx]
test al, al
push ebx
lea ebx, [edx + ecx]
je 0x5d9f62
cmp al, 0x2f
je 0x5d9e97
cmp al, 0x5c
je 0x5d9e97
mov eax, dword [0x8fe334]
push eax
push ebx
call fcn.0057d00c
add esp, 8
test eax, eax
jne 0x5d9e66
mov bl, byte [ebx]
cmp bl, 0x61
jl 0x5d9e52
cmp bl, 0x7a
jg 0x5d9e52
movsx eax, bl
sub eax, 0x20
mov byte [esp + ebp + 0x10], al
mov byte [esp + ebp + 0x11], 0
add ebp, 1
jmp 0x5d9f2c
mov dl, byte [esp + 0x10c]
mov al, byte [esp + 0x10d]
mov byte [edi], dl
mov byte [edi + 1], al
mov byte [edi + 2], 0
mov dword [esp + 8], 1
mov esi, 2
jmp 0x5d9dd3
movsx eax, bl
mov byte [esp + ebp + 0x10], al
mov byte [esp + ebp + 0x11], 0
add ebp, 1
jmp 0x5d9f2c
movzx ecx, byte [ebx]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x218]
mov byte [esp + ebp + 0x10], cl
movzx ecx, byte [eax + edx + 1]
mov byte [esp + ebp + 0x11], cl
mov byte [esp + ebp + 0x12], 0
add ebp, 2
add eax, 2
mov dword [esp + 0xc], eax
mov ecx, edx
jmp 0x5d9f38
test ebp, ebp
je 0x5d9f33
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x87a1a4
lea edx, [esp + 0x14]
push edx
call ebx
test eax, eax
je 0x5d9f2a
push 0x87a1a0
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x5d9f12
sub esi, 1
cmp byte [esi + edi], 0x5c
je 0x5d9f01
mov edi, edi
mov al, byte [esi + edi]
cmp al, 0x2f
je 0x5d9f01
cmp al, 0x3a
je 0x5d9f01
mov ecx, dword [0x8fe334]
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0057e902
sub eax, 2
add esp, 0xc
neg eax
sbb eax, eax
add eax, 2
sub esi, eax
cmp byte [esi + edi], 0x5c
jne 0x5d9ed0
cmp byte [esi + edi], 0x3a
je 0x5d9f0d
mov byte [esi + edi], 0
jmp 0x5d9f2a
add esi, 1
jmp 0x5d9f2a
mov byte [esi + edi], 0x5c
lea eax, [esp + 0x10]
add esi, 1
push eax
lea ecx, [esi + edi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, ebp
xor ebp, ebp
mov ecx, dword [esp + 0x218]
add dword [esp + 0xc], 1
mov edx, dword [esp + 0xc]
mov al, byte [edx + ecx]
test al, al
lea ebx, [edx + ecx]
jne 0x5d9de6
test ebp, ebp
je 0x5d9f62
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + edi + 1]
push ecx
mov byte [esi + edi], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret