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

Disassembly:
push 0xffffffffffffffff
push 0x401d7e
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 edi, dword [esp + 0x4ac]
xor ebp, ebp
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], edi
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__]
push 1
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x4a8], ebp
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 0x4011a4
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 0x4011a4
cmp dword [esp + 0x78], ebp
mov byte [esp + 0x17], al
jne 0x4011a9
mov byte [esp + 0x17], 1
test bl, 2
mov dword [esp + 0x49c], 1
je 0x4011ca
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 0x4011e0
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 0x401486
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00401020
cmp eax, 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__]
jl 0x40120c
cmp dword [esp + 0x18], ebp
jne 0x401315
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__]
cmp edi, ebp
mov byte [esp + 0x49c], 3
je 0x401232
push edi
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
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x401280
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 0x4012a9
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 0x4012ff
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_]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00401020
cmp eax, ebp
jl 0x40132d
cmp dword [esp + 0x18], 1
je 0x401344
lea ecx, [esp + 0x64]
push ecx
push str._kmpath__rs
call ebx
add esp, 8
test al, al
je 0x401486
push 0x40e
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 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401396
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 0x40149d
lea eax, [esp + 0x80]
lea edx, [eax + 2]
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 0x4013f0
lea eax, [esp + 0x80]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4013c7
sub eax, edx
sar eax, 1
mov ecx, 0x207
sub ecx, eax
push ecx
lea edx, [esp + 0x84]
push 0x402278
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x80]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401400
sub eax, edx
sar eax, 1
mov ecx, 0x207
sub ecx, eax
push ecx
lea edx, [esp + 0x84]
push 0x40227c
push edx
call esi
lea eax, [esp + 0x8c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401433
sub eax, edx
sar eax, 1
mov ecx, 0x207
sub ecx, eax
push ecx
lea edx, [esp + 0x84]
push edi
push edx
call esi
mov edx, dword [0x403380]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x84]
push ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x410
mov dword [esp + 0x30], eax
mov eax, dword [edx]
push 0x4a
push eax
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.00401585
add esp, 0x48c
ret 0x10