Function at 0x110f0ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
call fcn.110c7040
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ecx], 0
mov al, byte [ebx]
test al, al
je 0x110f10be
mov cl, byte [ebx + 1]
cmp cl, 0x3a
je 0x110f10be
cmp al, 0x5c
jne 0x110f0f14
cmp cl, al
je 0x110f10be
push 0x3a
push ebx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x110f10be
mov edi, dword [sym.imp.MSVCR100.dll__strnicmp]
mov esi, eax
sub esi, ebx
inc esi
push esi
push str.Desktop:
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x110f0f51
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2bc]
jmp 0x110f0f89
push esi
push str.Documents:
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x110f0f6c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c0]
jmp 0x110f0f89
push esi
push str.Downloads:
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x110f10be
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c4]
test eax, eax
je 0x110f10be
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov word [edi], dx
cmp dword [ebx + 0x2cc], edx
je 0x110f0fc3
cmp word [eax + 2], 0x3a
je 0x110f0fc3
mov ecx, 0x1121fd20
mov esi, edi
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x110f0fb4
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110f0fc5
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x110f0fd5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebx + 0x2d0]
mov edi, dword [ebp + 0x10]
lea esi, [ebx + 0x2d0]
mov ebx, dword [ebp - 8]
movsx eax, byte [ebx + 1]
inc ebx
cmp eax, ecx
je 0x110f1053
push edi
call fcn.110e46f0
movzx edx, word [esi]
add esp, 4
cmp eax, edx
je 0x110f1053
cmp byte [ebx], 0
je 0x110f1053
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110f1026
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x110f1036
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x10]
mov eax, edi
lea edx, [eax + 2]
jmp 0x110f1060
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110f1060
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110f1076
mov ecx, dword [ebp - 4]
push ecx
mov ecx, 0x104
sub ecx, edx
sub eax, esi
sar eax, 1
add ecx, ecx
push ecx
lea edx, [edi + eax*2]
push edx
push ebx
call fcn.111bb8a0
add esp, 0x10
test eax, eax
jne 0x110f1142
cmp byte [ebx], al
je 0x110f1142
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [eax], 0x6f
jmp 0x110f10c1
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2cc], 0
je 0x110f1122
cmp byte [ebx + 1], 0x3a
je 0x110f1122
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 4]
push eax
lea esi, [edi + 4]
push 0x204
xor edx, edx
push esi
push ebx
mov word [esi], dx
call fcn.111bb8a0
mov eax, esi
add esp, 0x10
cmp word [eax], 0
je 0x110f1142
cmp word [eax], 0x2f
jne 0x110f1110
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x110f1102
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
push 0x208
push edi
push ebx
call fcn.111bb8a0
add esp, 0x10
test eax, eax
jne 0x110f1142
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x6f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret