Function at 0x42e080
Capabilities:
Accept command line arguments
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esp + 0xa0]
call fcn.0042d9b0
push 0x104
mov dword [esp + 0x20], 0x104
call fcn.00449004
mov edi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, eax
test ebx, ebx
je 0x42e10b
mov ecx, str.SYSTEM
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42e100
test dl, dl
je 0x42e0fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42e100
add eax, 2
add ecx, 2
test dl, dl
jne 0x42e0e0
xor eax, eax
jmp 0x42e105
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42e10b
xor ebx, ebx
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
jne 0x42e133
push str.SwitchBoard_refuses_to_run_as_root__terminating_
push str.MAIN
lea ecx, [esp + 0xa8]
call fcn.0042daf0
jmp 0x42e3b4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x10], 0
je 0x42e183
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0042e4c0
lea ecx, [esp + 0x84]
call fcn.00408ba0
test al, al
jne 0x42e190
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0xa0]
push eax
jmp 0x42e3bc
call fcn.0042d8a0
mov edi, eax
push ebx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0xe8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_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__::end_void_]
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0xe8]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0x2c]
call fcn.00408fc0
add esp, 0x14
lea ecx, [esp + 0xc8]
mov eax, edi
push ecx
lea ebx, [esp + 0xa4]
lea edi, [esp + 0x14c]
call fcn.0042dd90
lea ecx, [esp + 0x150]
mov eax, 0x42e980
push ecx
push eax
lea esi, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.00430ad0
sub esp, 0x20
mov eax, esp
mov dword [eax], 0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], esp
test ecx, ecx
je 0x42e269
mov dword [eax], ecx
add eax, 8
push 0
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
call ecx
add esp, 0xc
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0xa8]
call fcn.0042de80
lea ecx, [esp + 0x100]
push ecx
mov eax, 0x42df90
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0042eaf0
lea ecx, [esp + 0x148]
push ecx
mov eax, 0x42de50
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0042eb60
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x64]
push edx
call esi
test eax, eax
je 0x42e2ef
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x58]
push eax
call edi
lea ecx, [esp + 0x58]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x64]
push edx
call esi
test eax, eax
jne 0x42e2d0
cmp byte [esp + 0x100], 0
jne 0x42e30f
mov eax, dword [esp + 0x104]
push eax
mov byte [esp + 0x104], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ebx, [esp + 0x40]
call fcn.00436b20
lea ecx, [esp + 0x150]
call fcn.0042e8a0
lea ebx, [esp + 0x4c]
call fcn.00436b20
mov ecx, ebx
push ecx
call fcn.00436a90
lea edx, [esp + 0x40]
push edx
call fcn.00436a90
lea eax, [esp + 0x100]
push eax
call fcn.0042e440
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42e371
mov eax, dword [eax]
test eax, eax
je 0x42e369
lea ecx, [esp + 0x28]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x20], 0
lea eax, [esp + 0x150]
push eax
call fcn.0042ddf0
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42e3a7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xa0]
push ecx
call fcn.0042e3e0
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00449014
mov esp, ebp
pop ebp
ret 0x10