Function at 0x40a740
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f30
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x598], ecx
push 0
call dword [sym.imp.mfc140.dll_Ordinal_2200]
add esp, 4
push 0x41b39c
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40a7b6
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, 0x4558544d
jne 0x40a7b6
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40ab73
mov dword [ebp - 0x588], 0
mov dword [ebp - 0x58c], 0
mov dword [ebp - 0x584], 0
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x590], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
lea edx, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x40a7f3
sub edi, edx
dec edi
test edi, edi
jle 0x40aa00
lea esi, [eax + 1]
add esi, edi
nop word [eax + eax]
cmp byte [esi - 1], 0x20
lea eax, [esi - 1]
mov dword [ebp - 0x594], eax
jne 0x40a9c2
mov ecx, esi
mov byte [eax], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a830
sub ecx, edx
cmp ecx, 5
jne 0x40a866
lea eax, [esi + 1]
push str.hide
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a866
mov al, byte [esi]
cmp al, 0x2f
je 0x40a9b8
cmp al, 0x2d
je 0x40a9b8
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a870
sub ecx, edx
cmp ecx, 6
jne 0x40a8a6
lea eax, [esi + 1]
push str.quiet
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a8a6
mov al, byte [esi]
cmp al, 0x2f
je 0x40a9b8
cmp al, 0x2d
je 0x40a9b8
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a8b0
sub ecx, edx
cmp ecx, 8
jne 0x40a8ee
lea eax, [esi + 1]
push str.install
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a8ee
mov al, byte [esi]
cmp al, 0x2f
je 0x40a8de
cmp al, 0x2d
jne 0x40a8ee
mov ecx, 1
mov dword [ebp - 0x584], ecx
jmp 0x40a9c8
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a8f3
sub ecx, edx
cmp ecx, 7
jne 0x40a937
lea eax, [esi + 1]
push str.remove
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a937
mov al, byte [esi]
cmp al, 0x2f
je 0x40a921
cmp al, 0x2d
jne 0x40a937
mov ecx, dword [ebp - 0x584]
mov eax, 1
mov dword [ebp - 0x580], eax
jmp 0x40a9ce
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a940
sub ecx, edx
cmp ecx, 8
jne 0x40a97a
lea eax, [esi + 1]
push str.service
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a97a
mov al, byte [esi]
cmp al, 0x2f
je 0x40a96e
cmp al, 0x2d
jne 0x40a97a
mov dword [ebp - 0x58c], 1
jmp 0x40a9b8
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a980
sub ecx, edx
cmp ecx, 5
jne 0x40a9c2
lea eax, [esi + 1]
push str.stat
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40a9c2
mov al, byte [esi]
cmp al, 0x2f
je 0x40a9ae
cmp al, 0x2d
jne 0x40a9c2
mov dword [ebp - 0x590], 1
mov dword [ebp - 0x588], 1
mov ecx, dword [ebp - 0x584]
mov eax, dword [ebp - 0x580]
mov esi, dword [ebp - 0x594]
dec edi
test edi, edi
jg 0x40a810
test ecx, ecx
je 0x40a9f0
mov ecx, 1
call fcn.00408630
jmp 0x40ab73
test eax, eax
je 0x40aa00
xor ecx, ecx
call fcn.00408630
jmp 0x40ab73
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsWow64Process
push str.kernel32
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.GetNativeSystemInfo
push str.kernel32
mov dword [0x425418], eax
call edi
push eax
call esi
mov dword [0x425414], eax
test eax, eax
je 0x40aa73
lea ecx, [ebp - 0x44]
push ecx
call eax
cmp word [ebp - 0x44], 9
jne 0x40aa73
cmp dword [0x425418], 0
je 0x40aa60
push 0x42541c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x425418]
cmp dword [0x42541c], 0
je 0x40aa73
mov dword [0x42541c], 1
push 0x538
lea eax, [ebp - 0x57c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x57c]
call fcn.0040b1b0
mov ecx, dword [ebp - 0x590]
lea edx, [ebp - 0x57c]
mov eax, dword [ebp - 0x588]
mov dword [ebp - 4], 0
mov dword [ebp - 0x36c], ecx
mov ecx, dword [ebp - 0x598]
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x58c]
mov dword [ebp - 0x370], eax
mov dword [ecx + 0x20], edx
test eax, eax
je 0x40ab00
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x41b43c
push eax
mov dword [ebp - 0x1c], 0x40a670
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x40ab68
mov ecx, dword [0x425488]
test ecx, ecx
je 0x40ab68
mov eax, dword [ecx]
call dword [eax + 0x17c]
mov eax, dword [0x425458]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40ab33
cmp eax, 0xffffffff
je 0x40ab33
push eax
call esi
mov dword [0x425458], 0
movups xmm1, xmmword [0x425448]
xorps xmm0, xmm0
movd edi, xmm1
movups xmmword [ebp - 0x20], xmm1
movups xmmword [0x425448], xmm0
cmp edi, 0xffffffff
je 0x40ab5d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x40ab68
push eax
call esi
lea ecx, [ebp - 0x57c]
call fcn.0040ab90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret