Function at 0x415be0
Capabilities:
Create process on windows
Get common file path
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e3dc
push eax
mov al, byte [0x476860]
mov dword fs:[0], esp
sub esp, 0x290
test al, 1
push ebx
push ebp
push esi
push edi
jne 0x415c52
or al, 1
push 0
mov byte [0x476860], al
mov al, byte [esp + 0x17]
mov ecx, 0x476850
mov byte [0x476850], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x476804
mov ecx, 0x476850
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x416350
call fcn.0043fe32
add esp, 4
mov al, byte [0x476860]
test al, 2
jne 0x415ca6
mov cl, byte [esp + 0x13]
or al, 2
mov byte [0x476840], cl
push 0
mov ecx, 0x476840
mov byte [0x476860], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x476804
mov ecx, 0x476840
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 0x416300
call fcn.0043fe32
add esp, 4
mov eax, dword [0x476848]
test eax, eax
jne 0x415f96
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x19c]
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x19c]
push eax
push 0
push 0x4717f4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x476850
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415d67
mov edi, dword [str._2W_]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x476850
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
push 0x4718f0
lea eax, [esp + 0x28]
push 0x476850
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x2a8], 0
mov edx, dword [ecx]
mov ecx, 0x476840
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x2ac], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x2b4]
mov edi, 3
mov eax, dword [str._2W_]
test eax, eax
jne 0x415dd1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push esi
call fcn.00402fb0
add esp, 8
cmp eax, 1
je 0x415e92
cmp eax, 0xfffffff4
je 0x415dec
dec edi
jne 0x415dc3
cmp eax, 1
je 0x415e92
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x476850
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415e3f
mov edi, dword [str._2W_]
mov ecx, ebp
mov eax, ecx
mov esi, 0x476804
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x476850
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x476840
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4162e4
mov edi, dword [0x476844]
mov ecx, ebp
mov edx, ecx
mov esi, 0x476804
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x476840
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
jmp 0x4162e4
push 0x4718e4
lea eax, [esp + 0x28]
push 0x476b70
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x2a8], 1
jne 0x415ec3
mov eax, esi
mov edx, dword [0x476844]
test edx, edx
jne 0x415ecf
mov edx, esi
mov ecx, dword [str._2W_]
test ecx, ecx
jne 0x415edb
mov ecx, esi
push eax
push edx
push ecx
call fcn.0043f690
add esp, 0xc
lea ecx, [esp + 0x24]
test eax, eax
push 1
mov dword [esp + 0x2ac], 0xffffffff
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
je 0x415f96
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x476850
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415f54
mov edi, dword [str._2W_]
mov ecx, ebp
mov edx, ecx
mov esi, 0x476804
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x476850
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, 0x476804
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, 0x476840
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4162e4
mov edi, dword [0x476844]
mov ecx, ebp
mov eax, ecx
mov esi, 0x476804
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x415e7c
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x2a8], 2
call fcn.00415b80
test eax, eax
je 0x416003
push 0x4718d8
lea edx, [esp + 0x28]
push 0x476840
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2a8], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0x2a8], 2
push 1
lea ecx, [esp + 0x28]
jmp 0x416046
push 0x4718cc
lea eax, [esp + 0x38]
push 0x476840
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2a8], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0x2a8], 2
push 1
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x416059
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call fcn.00405f20
add esp, 4
test eax, eax
jne 0x416082
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x2ac], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4162e4
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], 0x44
test eax, eax
jne 0x4160a4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4160f0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4162e4
mov al, byte [ecx - 1]
test al, al
je 0x4162da
cmp al, 0xff
je 0x4162da
dec al
mov byte [ecx - 1], al
jmp 0x4162e4
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4718bc
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, eax
test ebx, ebx
je 0x4160c7
push 0x4718ac
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x4160c7
push 0x14f0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4160c7
mov ecx, dword [esp + 0x2b8]
test ecx, ecx
je 0x416248
xor ecx, ecx
lea edx, [eax + 0x104]
cmp dword [edx], 0
je 0x4161a3
inc ecx
add edx, 0x10c
cmp ecx, 0x14
jb 0x416164
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41623e
mov al, byte [ecx - 1]
test al, al
je 0x416234
cmp al, 0xff
je 0x416234
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4162e6
mov edx, ecx
mov esi, dword [esp + 0x2b0]
shl edx, 5
add edx, ecx
mov edi, esi
push 0xffffffffffffffff
push ebx
lea ecx, [ecx + edx*2]
lea ebp, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, ecx
mov edi, ebp
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, 1
mov dword [ebp + 0x108], esi
mov dword [ebp + 0x104], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x104], 3
jne 0x416204
mov dword [ebp + 0x104], 0
jmp 0x4160c7
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41622d
mov al, byte [ecx - 1]
test al, al
je 0x416223
cmp al, 0xff
je 0x416223
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x4162e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
jmp 0x4162e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x4162e6
xor ecx, ecx
lea edx, [eax + 0x104]
cmp dword [edx], 0
je 0x416266
inc ecx
add edx, 0x10c
cmp ecx, 0x14
jb 0x416250
jmp 0x4160c7
mov edx, ecx
mov esi, dword [esp + 0x2b0]
shl edx, 5
add edx, ecx
mov edi, esi
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x108], 0
mov dword [edx + 0x104], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41623e
mov cl, byte [eax - 1]
test cl, cl
je 0x4162c9
cmp cl, 0xff
je 0x4162c9
dec cl
mov byte [eax - 1], cl
mov eax, 1
jmp 0x4162e6
dec eax
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
jmp 0x4162e6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret