Function at 0x45e4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5419c6
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.TEMP
push 0
push str.Environment
call fcn.00455960
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.004259d0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x45e5ac
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e5a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e838
push edx
push ecx
call fcn.004b9f4f
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x45e607
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x248]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x569e28
push edx
push str.Environment
mov edx, 0x80000001
call fcn.00455960
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.004259d0
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov edx, dword [esi + 0x10]
test edx, edx
je 0x45e7af
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x45e611
mov ecx, dword [esi]
push 0xd
push str._USERPROFILE_
push 0
call fcn.00459e20
add esp, 0xc
cmp eax, 0xffffffff
je 0x45e7af
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 0x45e760
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 0x45e71b
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e711
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e842
push edx
push ecx
call fcn.004b9f4f
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x45e81c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e812
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e83d
jmp 0x45e812
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x45e7af
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e7a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e842
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 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e7e0
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 0x45e71b
mov esi, 0x80004005
jmp 0x45e71d
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