Function at 0x403090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43773c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x442308]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
xor eax, eax
push 0x43c8ac
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.00401820
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov edi, 8
cmp dword [ebp - 0x21c], edi
jae 0x403108
lea eax, [ebp - 0x230]
push eax
push str.AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
lea ecx, [ebp - 0x250]
push ecx
call fcn.00407340
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401710
mov byte [ebp - 4], bl
cmp dword [ebp - 0x238], edi
jb 0x40314d
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00423621
add esp, 4
cmp dword [esi + 0x14], ebx
je 0x4032cb
push 0xd
push str._USERPROFILE_
mov eax, esi
call fcn.00403f60
cmp eax, 0xffffffff
je 0x4032cb
push 0xd
xor eax, eax
push str._USERPROFILE_
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
call fcn.00401820
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x4031b0
lea eax, [ebp - 0x230]
push eax
push str.USERPROFILE
push str.Volatile_Environment
push SysReAllocString
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00407340
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], ebx
je 0x403281
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x26c]
push edx
push eax
call fcn.00403d50
cmp dword [ebp - 0x254], edi
jb 0x403206
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.00423621
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], dx
cmp dword [ebp - 0x238], edi
jb 0x403237
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00423621
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], cx
cmp dword [ebp - 0x21c], edi
jb 0x403263
mov edx, dword [ebp - 0x230]
push edx
call fcn.00423621
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042364d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x254], edi
jb 0x403298
mov eax, dword [ebp - 0x268]
push eax
call fcn.00423621
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], cx
cmp dword [ebp - 0x238], edi
jb 0x4032cb
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00423621
add esp, 4
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00423660
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403304
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401820
cmp dword [esi + 0x14], ebx
jne 0x40324c
cmp dword [ebp - 0x21c], edi
jb 0x403342
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00423621
add esp, 4
mov eax, 0x80004005
jmp 0x403265