Function at 0x4027c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e70
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x443624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x74], ecx
mov cl, byte [ebp - 0x79]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x78]
push 0x208
push 8
mov dword [ebp - 0x78], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov byte [ebp - 0x70], cl
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x54]
mov esi, eax
mov dword [ebp - 0x2c], 0
test ecx, ecx
je 0x402870
lea eax, [ebp - 0x78]
cmp ecx, eax
jne 0x402868
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x402870
mov edx, dword [ecx]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40286b
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x40288b
mov edx, dword [ecx]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x4028be
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 4], 1
test eax, eax
je 0x402968
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x80], eax
test ecx, ecx
je 0x40299f
jmp 0x40295f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x402931
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push edi
push str._s_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x1000
push 0
push 0
push 0x104
push dword [ebp - 0x28]
call fcn.00406ab0
add esp, 0x48
test eax, eax
js 0x402931
mov edi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x40289c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp - 0x28]
push eax
push edi
push 0x42626c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x402897
mov edi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x40289c
mov eax, dword [ecx]
lea edx, [ebp - 0x80]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x402980
mov esi, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411faa
mov esp, ebp
pop ebp
ret 4
call fcn.00411cb0
int3