Function at 0x452fa0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10834
call fcn.0042beb0
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1082c], ecx
mov dword [ebp - 0x1081c], 0
mov eax, dword [ebp - 0x1082c]
mov ecx, dword [eax + 0x730]
mov dword [ebp - 0x10830], ecx
cmp dword [ebp - 0x10830], 0
je 0x452ff6
cmp dword [ebp - 0x10830], 1
je 0x453016
cmp dword [ebp - 0x10830], 3
je 0x453036
jmp 0x453054
lea edx, [ebp - 0x1081c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1082c]
mov ecx, dword [ecx + 0x71c]
call fcn.00468230
jmp 0x453054
lea edx, [ebp - 0x1081c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1082c]
mov ecx, dword [ecx + 0x718]
call fcn.0044c760
jmp 0x453054
lea edx, [ebp - 0x1081c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1082c]
mov ecx, dword [ecx + 0x720]
call fcn.0044a200
mov edx, dword [ebp - 0x1081c]
push edx
call fcn.0040858b
add esp, 4
mov dword [ebp - 0x10824], eax
mov eax, dword [ebp - 0x10824]
mov dword [ebp - 0x80c], eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1082c]
mov ecx, dword [eax + 0x724]
call fcn.0044ab80
push eax
push 8
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4a243c
lea ecx, [ebp - 0x10810]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x10810]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x10818], eax
mov eax, dword [ebp - 0x10818]
movzx ecx, word [ebp + eax*2 - 0x10812]
cmp ecx, 0x5c
je 0x45310d
mov edx, 0x5c
mov eax, dword [ebp - 0x10818]
mov word [ebp + eax*2 - 0x10810], dx
mov ecx, dword [ebp - 0x10818]
add ecx, 1
mov dword [ebp - 0x10818], ecx
xor edx, edx
mov eax, dword [ebp - 0x10818]
mov word [ebp + eax*2 - 0x10810], dx
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x10810]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..eml
lea eax, [ebp - 0x10810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x1082c]
mov edx, dword [ecx + 0x730]
mov dword [ebp - 0x10834], edx
cmp dword [ebp - 0x10834], 0
je 0x453162
cmp dword [ebp - 0x10834], 1
je 0x45318d
cmp dword [ebp - 0x10834], 3
je 0x4531b8
jmp 0x4531e1
lea eax, [ebp - 0x1081c]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1082c]
mov ecx, dword [eax + 0x71c]
call fcn.00468230
mov dword [ebp - 0x810], eax
jmp 0x4531e1
lea ecx, [ebp - 0x1081c]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1082c]
mov ecx, dword [ecx + 0x718]
call fcn.0044c760
mov dword [ebp - 0x810], eax
jmp 0x4531e1
lea edx, [ebp - 0x1081c]
push edx
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1082c]
mov ecx, dword [edx + 0x720]
call fcn.0044a200
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x453309
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
test eax, eax
je 0x453247
lea ecx, [ebp - 0x10810]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x453247
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x10810]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10814], eax
cmp dword [ebp - 0x10814], 0xffffffff
jne 0x453242
jmp 0x453247
jmp 0x4532d8
mov dword [ebp - 0x10820], 1
jmp 0x453262
mov eax, dword [ebp - 0x10820]
add eax, 1
mov dword [ebp - 0x10820], eax
cmp dword [ebp - 0x10820], 0xffffffff
jae 0x4532d8
mov ecx, dword [ebp - 0x10820]
push ecx
push str.Mail___d_.eml
mov edx, dword [ebp - 0x10818]
lea eax, [ebp + edx*2 - 0x10810]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x10810]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4532d3
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x10810]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10814], eax
cmp dword [ebp - 0x10814], 0xffffffff
jne 0x4532d1
xor eax, eax
jmp 0x453329
jmp 0x4532d8
jmp 0x453253
push 0
lea eax, [ebp - 0x1081c]
push eax
mov ecx, dword [ebp - 0x1081c]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
mov eax, dword [ebp - 0x10814]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10814]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x80c]
mov dword [ebp - 0x10828], edx
mov eax, dword [ebp - 0x10828]
push eax
call fcn.00408596
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 4