Function at 0x4010d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x401d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4ac]
xor ebp, ebp
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x49c], ebp
cmp dword [0x403388], ebp
mov dword [esp + 0x18], ebp
je 0x40113f
or edi, 0xffffffff
jmp 0x401155
lea eax, [esp + 0x18]
call fcn.00401020
cmp eax, ebp
jge 0x401151
or edi, 0xffffffff
jmp 0x401155
mov edi, dword [esp + 0x18]
push 1
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x49c], 1
mov esi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push 0x4021c8
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call esi
add esp, 8
test al, al
jne 0x4011cb
push ebx
push ebp
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push 0x4021cc
mov dword [esp + 0x4a0], 2
mov ebx, 3
push eax
mov dword [esp + 0x20], ebx
call esi
add esp, 8
test al, al
jne 0x4011cb
cmp dword [esp + 0x78], ebp
mov byte [esp + 0x17], al
jne 0x4011d0
mov byte [esp + 0x17], 1
test bl, 2
mov dword [esp + 0x49c], 1
je 0x4011f1
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, 1
mov dword [esp + 0x49c], ebp
je 0x401207
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esp + 0x17], 0
je 0x40142d
cmp edi, ebp
mov ebx, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
jne 0x401327
push 0x4021d0
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov byte [esp + 0x49c], 3
je 0x40124a
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x40e
lea edx, [esp + 0x86]
push ebp
push edx
mov word [esp + 0x8c], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x84]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edi, [esp + 0x80]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x401294
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
mov ecx, 6
mov esi, str.kxetray.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jae 0x4012bd
lea eax, [esp + 0x4c]
push 1
push ebp
push eax
lea edx, [esp + 0x8c]
push edx
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x64]
push eax
push str._kmpath__rs
call ebx
add esp, 8
test al, al
je 0x401313
push str.016432FB_290C_49a4_BD6B_29C3C491B6D5
push ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
mov byte [esp + 0x49c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40132c
cmp edi, 1
je 0x401343
lea ecx, [esp + 0x64]
push ecx
push str._kmpath__rs
call ebx
add esp, 8
test al, al
je 0x40142d
push 0x206
lea edx, [esp + 0x86]
push ebp
push edx
mov word [esp + 0x8c], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401395
lea ecx, [esp + 0x64]
mov dword [esp + 0x49c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or eax, 0xffffffff
jmp 0x401444
lea eax, [esp + 0x80]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4013a0
mov esi, dword [sym.imp.MSVCR80.dll_wcsncat]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x7e], 0x5c
je 0x4013d4
push 0x104
lea ecx, [esp + 0x84]
push 0x402278
push ecx
call esi
add esp, 0xc
push 0x104
lea edx, [esp + 0x84]
push 0x40227c
push edx
call esi
mov eax, dword [esp + 0x28]
push 0x104
push eax
lea ecx, [esp + 0x94]
push ecx
call esi
mov ecx, dword [0x403380]
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x84]
push ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], edx
mov edx, dword [ecx]
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x64]
mov dword [esp + 0x49c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.0040152b
add esp, 0x48c
ret 0x10