Function at 0x45e850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a16
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x230], 0
push eax
push 0x5679b8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00406ee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x248]
mov edx, 0x80000001
cmovae eax, dword [ebp - 0x230]
push eax
push str.AppData
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.00455960
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.004259d0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x45e93c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e932
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb7b
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
je 0x45eaef
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x45e951
mov ecx, dword [esi]
push 0xd
push str._USERPROFILE_
push 0
call fcn.00459e20
add esp, 0xc
cmp eax, 0xffffffff
je 0x45eaef
push 0xd
xor eax, eax
mov dword [ebp - 0x260], 0
push str._USERPROFILE_
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00406ee0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x248]
mov edx, 0x80000001
cmovae eax, dword [ebp - 0x230]
push eax
push str.USERPROFILE
push 0
push str.Volatile_Environment
call fcn.00455960
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x45eaa0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push ecx
cmovae eax, dword [ebp - 0x248]
mov ecx, esi
push eax
push dword [ebp - 0x250]
push 0
call fcn.00459c20
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x45ea5b
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ea51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.004b9f4f
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x45eb5f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45eb55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb80
jmp 0x45eb55
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x45eaef
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45eae5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb85
push edx
push ecx
call fcn.004b9f4f
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d90f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45eb23
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406ee0
cmp dword [esi + 0x10], 0
jne 0x45ea5b
mov esi, 0x80004005
jmp 0x45ea5d
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
call fcn.004e4b18
call fcn.004e4b18
call fcn.004e4b18
int3