Function at 0x4cbc50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00520bc0
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1008], edx
push edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
je 0x4cbfa3
cmp eax, 0x69
jne 0x4cbd63
mov ebx, esi
lea edx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4cbc90
sub ebx, edx
sar ebx, 1
movzx eax, cx
lea edi, [esi + 2]
cmp eax, 0x69
je 0x4cbcc9
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, ax
cmp eax, 0x41
jb 0x4cbe08
cmp eax, 0x5a
ja 0x4cbe08
cmp word [edi], 0x3a
jne 0x4cbe08
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x4cbce5
cmp eax, 0x2f
jne 0x4cbe08
movzx eax, word [esi]
movzx eax, ax
cmp eax, 0x69
je 0x4cbd0c
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, ax
cmp eax, 0x41
jb 0x4cbd9d
cmp eax, 0x5a
ja 0x4cbd9d
cmp word [edi], 0x3a
jne 0x4cbd9d
lea eax, [ebx + 4]
cmp eax, 0x800
jae 0x4cbfa3
mov ebx, dword [ebp - 0x1008]
push 4
push 0x57df60
push ebx
call fcn.0053048c
add esp, 0xc
sub ebx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi + 6], ax
test ax, ax
jne 0x4cbd40
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx ecx, word [esi]
mov ebx, esi
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4cbd72
sub ebx, edx
sar ebx, 1
cmp ecx, 0x5c
jne 0x4cbc9f
lea edi, [esi + 2]
mov eax, ecx
cmp word [edi], cx
je 0x4cbce8
jmp 0x4cbcaa
cmp word [esi], 0x5c
jne 0x4cbfa3
cmp word [edi], 0x5c
jne 0x4cbfa3
lea eax, [ebx + 6]
cmp eax, 0x800
jae 0x4cbfa3
mov ebx, dword [ebp - 0x1008]
push 4
push 0x57df60
push ebx
call fcn.0053048c
add esp, 0xc
mov dword [ebx + 8], 0x4e0055
mov dword [ebx + 0xc], 0x43
sub ebx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ebx + edi + 0xc], ax
test ax, ax
jne 0x4cbde5
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1004]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4cbfa3
cmp eax, 0x7ff
ja 0x4cbfa3
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4cbf4b
cmp eax, 0x2f
je 0x4cbf4b
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cbe50
sub ecx, edx
sar ecx, 1
je 0x4cbe93
cmp word [ebp + ecx*2 - 0x1006], 0x5c
je 0x4cbe93
lea eax, [ecx + 1]
cmp eax, 0x800
jae 0x4cbe93
lea edi, [ebp - 0x1004]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4cbe80
mov eax, dword [0x5741c8]
mov dword [edi], eax
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cbea0
sub ecx, edx
lea eax, [ebx + 4]
sar ecx, 1
add eax, ecx
cmp eax, 0x800
jae 0x4cbfa3
mov ebx, dword [ebp - 0x1008]
push 4
push 0x57df60
push ebx
call fcn.0053048c
lea ecx, [ebp - 0x1004]
mov eax, ebx
mov edx, ecx
add esp, 0xc
sub eax, edx
lea edx, [eax + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4cbee4
cmp word [esi], 0x2e
jne 0x4cbf0b
movzx eax, word [esi + 2]
cmp eax, 0x5c
je 0x4cbf08
cmp eax, 0x2f
jne 0x4cbf0b
add esi, 4
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cbf10
sub ecx, edx
mov eax, 0x7ff
sar ecx, 1
sub eax, ecx
test eax, eax
jle 0x4cbf90
push eax
push esi
push ebx
lfence
call fcn.005304cf
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 6]
cmp eax, 0x800
jae 0x4cbfa3
mov ebx, dword [ebp - 0x1008]
push 4
push 0x57df60
push ebx
call fcn.0053048c
push 2
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebx + 8]
push eax
call fcn.0053048c
add esp, 0x18
sub ebx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi + 0xa], ax
test ax, ax
jne 0x4cbf80
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret