Function at 0x40c510
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x414e7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
push 0x104
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x30], eax
push ecx
push ebx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dl, byte [esp + 0x23]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x424760
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call ebp
add esp, 4
lea ecx, [esp + 0x10]
push eax
push 0x424760
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push str.SomDeletor.exe
mov dword [esp + 0x884], ebx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
add esp, 4
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x40c5c5
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x40c606
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea edi, [edx + esi]
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x40c606
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push str.SomDeletor.exe
lea edx, [eax + ecx*2]
push edx
call fcn.004096c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], edi
add esp, 0xc
mov word [eax + edi*2], bx
lea ecx, [esp + 0x78]
push ecx
call ebp
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov edi, eax
add esp, 4
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
sub eax, edx
cmp eax, edi
ja 0x40c62a
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp edi, ebx
jbe 0x40c66b
mov ecx, dword [esp + 0x18]
push ebx
lea esi, [ecx + edi]
lea ecx, [esp + 0x14]
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x40c66b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edi
push edx
lea edx, [eax + ecx*2]
push edx
call fcn.004096c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40c678
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c6c0
push str.SOMUtil::SelfDeleteByProcess___CreateProcess_Error___
push 0x41ba48
call fcn.0040c890
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, ebx
je 0x40c6f8
mov al, byte [ecx - 1]
cmp al, bl
je 0x40c6ec
cmp al, 0xff
je 0x40c6ec
dec al
mov byte [ecx - 1], al
jmp 0x40c6f8
push str.SOMUtil::SelfDeleteByProcess___CreateProcess_Success___
push 0x41ba48
call fcn.0040c890
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, ebx
je 0x40c6f8
mov al, byte [ecx - 1]
cmp al, bl
je 0x40c6ec
cmp al, 0xff
je 0x40c6ec
dec al
mov byte [ecx - 1], al
jmp 0x40c6f8
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x878]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x874
ret