Function at 0x402d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377a7
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 0x402de8
lea eax, [ebp - 0x230]
push eax
push str.TEMP
push str.Environment
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 0x402e2d
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00423621
add esp, 4
cmp dword [esi + 0x14], ebx
jne 0x402e94
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x402e46
lea eax, [ebp - 0x230]
push eax
push 0x43c784
push str.Environment
push SysReAllocString
lea eax, [ebp - 0x250]
push eax
call fcn.00407340
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401710
mov byte [ebp - 4], bl
cmp dword [ebp - 0x238], edi
jb 0x402e8b
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00423621
add esp, 4
cmp dword [esi + 0x14], ebx
je 0x403009
push 0xd
push str._USERPROFILE_
mov eax, esi
call fcn.00403f60
cmp eax, 0xffffffff
je 0x403009
push 0xd
xor edx, edx
push str._USERPROFILE_
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], dx
call fcn.00401820
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x402eee
lea eax, [ebp - 0x230]
push eax
push str.USERPROFILE
push str.Volatile_Environment
push SysReAllocString
lea eax, [ebp - 0x26c]
push eax
call fcn.00407340
mov byte [ebp - 4], 4
cmp dword [ebp - 0x258], ebx
je 0x402fbf
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x26c]
push ecx
push edx
call fcn.00403d50
cmp dword [ebp - 0x254], edi
jb 0x402f44
mov eax, dword [ebp - 0x268]
push eax
call fcn.00423621
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], cx
cmp dword [ebp - 0x238], edi
jb 0x402f75
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00423621
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
cmp dword [ebp - 0x21c], edi
jb 0x402fa1
mov ecx, dword [ebp - 0x230]
push ecx
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 0x402fd6
mov edx, dword [ebp - 0x268]
push edx
call fcn.00423621
add esp, 4
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], ax
cmp dword [ebp - 0x238], edi
jb 0x403009
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00423621
add esp, 4
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.00423660
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403042
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00401820
cmp dword [esi + 0x14], ebx
jne 0x402f8a
cmp dword [ebp - 0x21c], edi
jb 0x403080
mov eax, dword [ebp - 0x230]
push eax
call fcn.00423621
add esp, 4
mov eax, 0x80004005
jmp 0x402fa3