Function at 0x402390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40887e
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x40d024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x429], cl
push 2
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 1
push eax
push 0x4096f4
push 0x17
push 0
push 0x409704
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x402442
push dword [ebp - 0x41c]
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
test esi, esi
js 0x402432
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x428]
push edx
push 0x409694
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x402463
mov dword [ebp - 0x428], 0
test esi, esi
jns 0x402463
push esi
push str.CreateInstance_failed_w_err_0x_08lx_n
call fcn.00401080
add esp, 8
jmp 0x402eee
push ecx
mov ecx, esp
mov dword [ebp - 0x420], esp
push ecx
call fcn.00401930
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x428]
test ecx, ecx
jne 0x40248a
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push eax
call fcn.004035e0
mov ecx, 0xb
or eax, 0xffffffff
mov word [ebp - 0x468], cx
mov word [ebp - 0x460], ax
mov word [ebp - 0x450], cx
mov word [ebp - 0x448], ax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x434]
test esi, esi
jne 0x4024d6
push 0x80004003
call fcn.00407220
movups xmm0, xmmword [ebp - 0x468]
mov ecx, dword [esi]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x450]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [0x40d008]
movups xmmword [eax], xmm0
mov eax, esp
push esi
movups xmmword [eax], xmm0
call dword [ecx + 0x58]
test eax, eax
jns 0x402521
push 0x40979c
push esi
push eax
call fcn.00407240
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x450]
push eax
call ebx
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 3
push eax
call ebx
mov ecx, dword [ebp - 0x434]
test ecx, ecx
jne 0x402551
push 0x80004003
call fcn.00407220
push ecx
lea eax, [ebp - 0x43c]
push eax
call fcn.004036b0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x43c]
test ecx, ecx
jne 0x402576
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x430]
push eax
call fcn.004037c0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x430]
test esi, esi
jne 0x40259a
push 0x80004003
call fcn.00407220
mov eax, dword [esi]
lea ecx, [ebp - 0x41c]
push ecx
push esi
mov dword [ebp - 0x41c], 0
call dword [eax + 0x2c]
test eax, eax
jns 0x4025c1
push 0x4097ac
push esi
push eax
call fcn.00407240
mov esi, dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv esi
mov eax, 0x16
mov word [ebp - 0x468], ax
mov dword [ebp - 0x460], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x430]
test ecx, ecx
jne 0x4025fa
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.00403770
lea eax, [ebp - 0x468]
push eax
call ebx
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x454]
test eax, eax
jne 0x402638
push 0x80004003
call fcn.00407220
lea edx, [ebp - 0x424]
mov dword [ebp - 0x424], 0
mov ecx, dword [eax]
push edx
push 0x4097c4
push eax
call dword [ecx]
test eax, eax
js 0x402ded
mov ax, word [0x4095d8]
movups xmm0, xmmword [str.Mail.txt]
push 0xee
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push 0
push eax
movups xmmword [ebp - 0x628], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
push 0x80
call edi
test eax, eax
je 0x4026e6
lea edx, [ebp - 0x628]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4026b0
lea edi, [ebp - 0x118]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4026c6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
lea ecx, [ebp - 0x528]
call fcn.00403f10
sub esp, 8
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x524]
push eax
call fcn.00405bb0
test eax, eax
lea ecx, [ebp - 0x528]
mov eax, dword [ebp - 0x528]
push 0
mov eax, dword [eax + 4]
jne 0x40272c
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
jmp 0x402736
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
mov ecx, dword [ebp - 0x424]
test ecx, ecx
jne 0x40274a
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x41c]
push eax
call fcn.00403b10
mov byte [ebp - 4], 0xd
mov esi, dword [eax]
test esi, esi
je 0x402775
cmp dword [esi + 4], 0
jne 0x402770
push dword [esi]
call fcn.004072e0
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
jmp 0x402777
xor edx, edx
lea ecx, [ebp - 0x528]
call fcn.004065b0
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0xc
call fcn.004019d0
push 0x406890
lea ecx, [ebp - 0x528]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [ebp - 0x424]
test ecx, ecx
jne 0x4027b6
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x41c]
push eax
call fcn.004039a0
mov byte [ebp - 4], 0xe
mov esi, dword [eax]
test esi, esi
je 0x4027e1
cmp dword [esi + 4], 0
jne 0x4027dc
push dword [esi]
call fcn.004072e0
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
jmp 0x4027e3
xor edx, edx
lea ecx, [ebp - 0x528]
call fcn.004065b0
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0xc
call fcn.004019d0
push 0x406890
lea ecx, [ebp - 0x528]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [ebp - 0x424]
test ecx, ecx
jne 0x402822
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x41c]
push eax
call fcn.00403840
mov byte [ebp - 4], 0xf
mov esi, dword [eax]
test esi, esi
je 0x40284d
cmp dword [esi + 4], 0
jne 0x402848
push dword [esi]
call fcn.004072e0
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
jmp 0x40284f
xor edx, edx
lea ecx, [ebp - 0x528]
call fcn.004065b0
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0xc
call fcn.004019d0
push 0x406890
lea ecx, [ebp - 0x528]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x528]
call fcn.00403e90
cmp byte [ebp - 0x429], 0
je 0x402d79
mov ecx, dword [ebp - 0x428]
test ecx, ecx
jne 0x4028a6
push 0x80004003
call fcn.00407220
push ecx
lea eax, [ebp - 0x458]
push eax
call fcn.00403590
push eax
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 0x10
call fcn.004068c0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x4028d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.poc_cymulate.com
call fcn.004018a0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x402902
push 0x80004003
call fcn.00407220
mov byte [ebp - 4], 0x12
call fcn.00403bc0
push ecx
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.Test
call fcn.004018a0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x402936
push 0x80004003
call fcn.00407220
mov byte [ebp - 4], 0x12
call fcn.00403a50
push ecx
mov ecx, esp
mov dword [ebp - 0x420], esp
push str.Test
call fcn.004018a0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x40296a
push 0x80004003
call fcn.00407220
mov byte [ebp - 4], 0x12
call fcn.004038f0
mov eax, dword [0x409600]
movq xmm0, qword [str.PS.jpg]
mov dword [ebp - 0x620], eax
mov ax, word [0x409604]
push 0xf2
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push 0
push eax
movq qword [ebp - 0x628], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x80
call edi
test eax, eax
je 0x402a06
lea edx, [ebp - 0x628]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4029d0
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4029e6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, 8
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x218]
push eax
call ebx
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x402a35
push 0x8007000e
call fcn.00407220
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x402a4d
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x420]
push eax
call fcn.00403800
mov byte [ebp - 4], 0x17
mov ecx, dword [eax]
test ecx, ecx
jne 0x402a6d
push 0x80004003
call fcn.00407220
sub esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00403700
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x402a93
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x402aa7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x12
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
mov eax, dword [0x409618]
movups xmm0, xmmword [str.Users.txt]
push 0xec
mov dword [ebp - 0x618], eax
lea eax, [ebp - 0x614]
push 0
push eax
movups xmmword [ebp - 0x628], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push 0x80
call edi
test eax, eax
je 0x402b46
lea edx, [ebp - 0x628]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402b03
lea edi, [ebp - 0x318]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402b20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 8
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x318]
push eax
call ebx
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x402b6f
push 0x8007000e
call fcn.00407220
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x402b87
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x438]
push eax
call fcn.00403800
mov byte [ebp - 4], 0x19
mov ecx, dword [eax]
test ecx, ecx
jne 0x402ba7
push 0x80004003
call fcn.00407220
sub esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00403700
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x402bcd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x402be1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x12
push eax
call esi
mov ax, word [0x4095d8]
movups xmm0, xmmword [str.Mail.txt]
push 0xee
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push 0
push eax
movups xmmword [ebp - 0x628], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x80
call edi
test eax, eax
je 0x402c76
lea edx, [ebp - 0x628]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402c40
lea edi, [ebp - 0x418]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402c56
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 8
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x418]
push eax
call ebx
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x402c9f
push 0x8007000e
call fcn.00407220
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x402cb7
push 0x80004003
call fcn.00407220
lea eax, [ebp - 0x438]
push eax
call fcn.00403800
mov byte [ebp - 4], 0x1b
mov ecx, dword [eax]
test ecx, ecx
jne 0x402cd7
push 0x80004003
call fcn.00407220
sub esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00403700
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x402cfd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x402d11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x12
push eax
call esi
mov esi, dword [ebp - 0x41c]
test esi, esi
jne 0x402d32
push 0x80004003
call fcn.00407220
mov eax, dword [esi]
push esi
call dword [eax + 0x1e8]
test eax, eax
jns 0x402d4b
push 0x4097c4
push esi
push eax
call fcn.00407240
mov eax, dword [ebp - 0x41c]
test eax, eax
jne 0x402d5f
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x402d79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x402d8d
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x424], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x528]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x52c], eax
lea ecx, [ebp - 0x524]
call fcn.00404a20
lea ecx, [ebp - 0x520]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x4c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x402dfa
push str.Error_n
call fcn.00401100
add esp, 4
mov eax, dword [ebp - 0x430]
test eax, eax
jne 0x402e0e
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x430], 0
test eax, eax
jne 0x402e32
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x43c], 0
test eax, eax
jne 0x402e56
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x434], 0
test eax, eax
jne 0x402e7a
push 0x80004003
call fcn.00407220
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], 0
test eax, eax
je 0x402e9e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x454]
test eax, eax
je 0x402eb2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x402ec6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x402eda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x402eee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402f02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004076ea
mov esp, ebp
pop ebp
ret