Function at 0x4014f6
Capabilities:
Get common file path

Disassembly:
jmp 0x409910
push 0xffffffffffffffff
push 0x49860c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x248]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str..FileToEmail.cpp
mov dword [esp + 0x24c], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.GetUserTempDir
mov byte [esp + 0x250], 1
call fcn.004012d5
or edi, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24c], edi
call fcn.0040130c
push 0x104
lea eax, [esp + 0x134]
push 0
push eax
mov dword [esp + 0x24c], 2
call fcn.00451640
add esp, 0xc
push 0
push 0x24
lea ecx, [esp + 0x138]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x409a0a
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Failed_to_get_users_sys_directory
mov byte [esp + 0x13c], al
call fcn.004012d5
lea ecx, [esp + 0x20]
call fcn.00401514
jmp 0x409a2b
lea edi, [esp + 0x130]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409a14
mov dx, word [0x4a33c8]
mov word [edi], dx
or edi, 0xffffffff
push 0x104
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00451640
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jge 0x409a77
test eax, eax
je 0x409a77
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00451abe
add esp, 8
test eax, eax
jne 0x409b33
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.GetTempPath_failed_or_is_system_directory
call fcn.004012d5
lea ecx, [esp + 0x20]
call fcn.00401514
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409aac
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov byte [esp + 0x244], 3
call fcn.004010d2
test al, al
je 0x409b6c
push 4
push str.temp
lea ecx, [esp + 0x18]
call fcn.004010ff
push 1
push 0x4a33c8
lea ecx, [esp + 0x18]
call fcn.004010ff
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x409b04
lea eax, [esi - 0x10]
mov byte [esp + 0x240], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409b33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409b40
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00401032
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], edi
call fcn.004013f2
mov al, 1
jmp 0x409bc0
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Failed_to_get_temp_directory
call fcn.004012d5
lea ecx, [esp + 0x20]
call fcn.00401514
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x240], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409bae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], edi
call fcn.004013f2
xor al, al
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0045162d
add esp, 0x234
ret 4