Function at 0x4014d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov dword [ebp - 0x70], 0xa12c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0xbba8
je 0x4014f7
jmp 0x401543
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.ole32.dll_CoGetObject]
mov dword [ebp - 0x90], eax
push 0x75
push 0xb7
push 0x3c
mov dl, byte [ebp + 0x10]
mov ecx, 0xde
call fcn.00596e20
mov edx, dword [ebp - 0x70]
sub edx, 0xce6a
mov dword [ebp - 0x70], edx
jmp 0x4015e8
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xdc], al
cmp byte [ebp - 0xdc], 0xc0
je 0x401563
cmp byte [ebp - 0xdc], 0xed
je 0x401591
jmp 0x4015e8
call fcn.00595ff0
mov ecx, dword [ebp - 0x70]
add ecx, 0x809a
mov dword [ebp - 0x70], ecx
movzx edx, byte [ebp + 8]
push edx
mov dl, byte [ebp + 0x18]
mov cl, byte [ebp + 0x10]
call fcn.004012d0
mov eax, dword [ebp - 0x70]
and eax, 0xee04
mov dword [ebp - 0x70], eax
jmp 0x4015e8
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [ebp - 0x38], eax
movzx ecx, byte [ebp + 0x14]
push ecx
movzx edx, byte [ebp + 0x14]
push edx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp + 0x18]
push edx
call fcn.004014d0
mov eax, dword [ebp - 0x70]
shl eax, 1
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xc8]
push edx
call dword [sym.imp.ole32.dll_CoSwitchCallContext]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 0xc], 0xed
jl 0x401649
movzx ecx, byte [ebp + 8]
push ecx
movzx edx, byte [ebp + 8]
push edx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp + 0x14]
push edx
call fcn.004014d0
mov eax, dword [ebp - 0x34]
or eax, 0xf256
mov dword [ebp - 0x70], eax
movzx ecx, byte [ebp + 0x14]
push ecx
mov dl, byte [ebp + 0x14]
mov cl, byte [ebp + 0x10]
call fcn.004012d0
mov byte [ebp + 0x10], 0x5a
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x6c], eax
jmp 0x4016bb
mov ecx, 0xe6a
mov word [ebp - 0x64], cx
mov dl, byte [ebp + 0x18]
mov byte [ebp - 0xd], dl
mov al, byte [ebp + 8]
mov byte [ebp - 0xe0], al
cmp byte [ebp - 0xe0], 0
je 0x40166c
jmp 0x4016ad
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0xe4], cl
cmp byte [ebp - 0xe4], 0
je 0x401689
cmp byte [ebp - 0xe4], 0x73
je 0x4016a0
jmp 0x4016ab
lea edx, [ebp - 0x70]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0xc9], cl
jmp 0x4016ab
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x48]
mov dword [eax], edx
jmp 0x4016bb
mov dl, byte [ebp - 0xc9]
mov ecx, dword [ebp - 0x70]
call fcn.00401af0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov dword [ebp - 0xd4], edx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov cl, byte [ebp - 0xc9]
mov byte [ebp - 0xe8], cl
cmp byte [ebp - 0xe8], 0
je 0x401701
cmp byte [ebp - 0xe8], 0x13
je 0x4016ef
jmp 0x401ad8
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
add eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
jmp 0x401ad8
movsx edx, byte [ebp - 0xd]
movsx eax, byte [ebp + 0x14]
and edx, eax
movsx ecx, byte [ebp + 0x18]
movsx eax, byte [ebp + 8]
add ecx, eax
cmp edx, ecx
jle 0x401757
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
shl edx, cl
mov dword [ebp - 0x78], edx
call dword [sym.imp.ole32.dll_CoRevokeMallocSpy]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
and ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
mov dl, byte [ebp - 0xc9]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call fcn.00401af0
jmp 0x401a8e
movsx ecx, byte [ebp - 0xd]
movsx edx, byte [ebp + 0x18]
sub ecx, edx
movsx eax, byte [ebp + 0x14]
movsx edx, byte [ebp + 8]
add eax, edx
cmp ecx, eax
jg 0x401a8e
mov eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc9]
mov dword [ebp - 0x18], ecx
mov dx, word [ebp - 0x64]
mov word [ebp - 0x74], dx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 8]
sub edx, dword [ecx]
mov eax, dword [ebp - 0xd0]
add eax, dword [ebp - 0x78]
cmp edx, eax
jne 0x4017cc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 8]
mov dword [ebp - 0x4c], edx
mov ax, word [ebp - 0x74]
mov word [ebp - 0xa0], ax
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xec], cl
cmp byte [ebp - 0xec], 0x38
je 0x401800
cmp byte [ebp - 0xec], 0x3a
je 0x4017ec
jmp 0x401878
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
movzx ecx, byte [ebp + 0x10]
sub eax, ecx
mov byte [ebp - 0xc9], al
jmp 0x401878
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [edx]
and ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
sub eax, dword [ebp - 0x78]
cmp ecx, eax
je 0x40186d
lea ecx, [ebp - 0x5c]
push ecx
push 0xc9
lea edx, [ebp - 0xb4]
push edx
push 0xf6
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.ole32.dll_CoGetStandardMarshal]
mov dword [ebp - 0x3c], eax
movsx edx, byte [ebp + 0x14]
movsx ecx, byte [ebp + 8]
sar edx, cl
mov byte [ebp - 0xd], dl
call fcn.00595ff0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
jmp 0x401878
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
or ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 0x85], al
movzx edx, word [ebp - 0x64]
movzx ecx, word [ebp - 0x74]
shl edx, cl
mov word [ebp - 0xa0], dx
movsx eax, byte [ebp - 0xd]
movsx ecx, byte [ebp + 0x14]
and eax, ecx
movsx edx, byte [ebp + 0x18]
movsx ecx, byte [ebp + 8]
sub edx, ecx
cmp eax, edx
jl 0x401922
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xf0], dl
cmp byte [ebp - 0xf0], 0
je 0x4018c9
cmp byte [ebp - 0xf0], 0x21
je 0x4018ec
jmp 0x401922
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x78]
add ecx, dword [eax]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
jmp 0x401922
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x85]
sub eax, ecx
mov byte [ebp - 0xc9], al
lea edx, [ebp - 0xa0]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
movzx ecx, word [ebp - 0xa0]
mov edx, dword [ebp - 4]
movzx eax, word [edx]
sub ecx, eax
movzx edx, word [ebp - 0x74]
movzx eax, word [ebp - 0x64]
imul edx, eax
cmp ecx, edx
jl 0x40196b
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
and edx, dword [ebp - 0x20]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
add ecx, dword [edx]
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0xd]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ecx]
shl edx, cl
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x70]
shr eax, cl
cmp edx, eax
jae 0x4019d6
push 0x37
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0xc9]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.ole32.dll_CoGetMarshalSizeMax]
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp + 0xc], eax
jmp 0x401a3d
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
xor ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x70]
xor edx, edx
div dword [ebp - 0xd4]
cmp ecx, eax
jb 0x401a3d
movzx edx, byte [ebp - 0x85]
movzx eax, byte [ebp - 0xc9]
or edx, eax
mov ecx, dword [ebp - 0x18]
mov byte [ecx], dl
movzx edx, word [ebp - 0xa0]
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
and edx, ecx
mov word [ebp - 0x74], dx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0xc9]
push eax
call dword [sym.imp.ole32.dll_CoCopyProxy]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x70]
add ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
movzx edx, byte [ebp + 0x10]
sub ecx, edx
movzx eax, byte [ebp - 0x85]
movzx edx, byte [ebp - 0xc9]
sub eax, edx
cmp ecx, eax
jne 0x401a8e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx]
mov byte [ebp - 0x7d], dl
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
add edx, dword [ebp - 0x70]
mov dword [ebp - 0xa4], edx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x78]
cmp edx, dword [ebp + 0xc]
jne 0x401ad8
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xb4]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [ebp - 0x14], eax
movzx edx, word [ebp - 0x64]
or edx, 0x6b5
mov word [ebp - 0x64], dx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xd4]
shr eax, cl
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov dword [eax], edx
movsx ecx, byte [ebp + 0x14]
movsx edx, byte [ebp + 0x18]
sub ecx, edx
mov byte [ebp - 0xd], cl
mov eax, 0xc0
mov esp, ebp
pop ebp
ret 0x14