Function at 0x402920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x444624]
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
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x84], eax
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 0x4029d1
lea eax, [ebp - 0x78]
cmp ecx, eax
jne 0x4029ce
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 0x4029d1
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x4029d1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x402a07
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 0x402ace
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x80], eax
test ecx, ecx
je 0x402b06
jmp 0x402ac5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x402a90
movzx eax, byte [ebp - 0x11]
movzx ebx, byte [ebp - 0x13]
movzx edi, byte [ebp - 0x14]
movzx esi, byte [ebp - 0x15]
movzx edx, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0x17]
mov dword [ebp - 0x88], eax
push dword [ebp - 0x88]
movzx eax, byte [ebp - 0x12]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x80]
movzx eax, byte [ebp - 0x18]
push ebx
push edi
mov edi, dword [ebp - 0x84]
push esi
push edx
push ecx
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.00406fc0
add esp, 0x48
test eax, eax
js 0x402a96
mov edi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x4029e5
mov edi, dword [ebp - 0x84]
mov esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp - 0x28]
push esi
push eax
push edi
push 0x426260
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4029e0
mov edi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x4029e5
mov eax, dword [ecx]
lea edx, [ebp - 0x80]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x402ae6
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret 4
call fcn.00412550
int3