Function at 0x405490
Capabilities:
Delete service
Enumerate services
Query service status
Resolve function by parsing pe exports
Start service
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x58], edx
push edi
mov eax, ecx
mov dword [esp + 0x50], ebx
xor edi, edi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x30], eax
xor esi, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_SetThreadUILanguage]
push edi
push edi
push 1
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
mov dword [0x40ebc0], eax
cmp eax, 0xffffffff
je 0x40672c
cmp dword [esp + 0x18], 2
jb 0x406739
cmp byte [0x40ebc4], bl
jne 0x406745
mov edi, dword [esp + 0x5c]
push 2
push 0x4011c4
push dword [edi + 4]
mov dword [esp + 0x1c], edi
mov esi, 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x406782
mov eax, dword [esp + 0x10]
lea edi, [esi*4]
push 0x4011b8
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4067a8
mov dword [esp + 0x40], 1
lea eax, [esi + 1]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x2c], 1
mov edx, 1
mov dword [esp + 0x24], 0x1000
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x18], edi
jbe 0x40574b
mov ebx, dword [esp + 0x10]
jmp 0x4055c0
mov esi, dword [ebx + edi*4]
mov ecx, 0x4011b0
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057e0
test dx, dx
je 0x4055fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057e0
add eax, 4
add ecx, 4
test dx, dx
jne 0x4055d0
xor eax, eax
test eax, eax
je 0x407e35
mov ecx, 0x4011a4
mov eax, esi
jmp 0x405610
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057ea
test dx, dx
je 0x40563a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057ea
add eax, 4
add ecx, 4
test dx, dx
jne 0x405610
xor eax, eax
test eax, eax
je 0x407e50
mov ecx, 0x401194
mov eax, esi
jmp 0x405650
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057f4
test dx, dx
je 0x40567a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057f4
add eax, 4
add ecx, 4
test dx, dx
jne 0x405650
xor eax, eax
test eax, eax
je 0x408172
mov ecx, 0x401184
mov eax, esi
jmp 0x405690
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057fe
test dx, dx
je 0x4056ba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x405690
xor eax, eax
test eax, eax
je 0x408249
mov eax, 0x401170
mov ecx, esi
jmp 0x4056d0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405808
test dx, dx
je 0x4056fa
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405808
add ecx, 4
add eax, 4
test dx, dx
jne 0x4056d0
xor eax, eax
test eax, eax
je 0x408266
cmp edi, dword [esp + 0x3c]
jne 0x4082d1
mov eax, esi
push 0x3d
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4082bf
mov esi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], edx
inc edi
inc edi
cmp esi, edi
ja 0x4055c0
cmp dword [esp + 0x24], 0
mov ebx, dword [esp + 0x38]
je 0x4082b4
push dword [esp + 0x24]
push 0
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
mov dword [esp + 0x50], edi
test edi, edi
je 0x4067f9
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4082e3
test ebx, ebx
jne 0x408487
push 1
push ebx
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x406c06
push 4
push dword [esp + 0x38]
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x405812
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x40], ebx
je 0x4084cc
push edi
push eax
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x4084ea
push dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
xor edx, edx
call fcn.004059c0
jmp 0x405932
sbb eax, eax
or eax, 1
jmp 0x4055fc
sbb eax, eax
or eax, 1
jmp 0x40563c
sbb eax, eax
or eax, 1
jmp 0x40567c
sbb eax, eax
or eax, 1
jmp 0x4056bc
sbb eax, eax
or eax, 1
jmp 0x4056fc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov esi, 0x65
push 0xa
lea eax, [esp + 0x74]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__ultow]
add esp, 0xc
mov dword [esp + 0x64], 0x4011d0
lea eax, [esp + 0x70]
mov dword [esp + 0x68], eax
xor eax, eax
mov word [0x40e3c0], ax
push eax
push 0x400
push 0x40e3c0
push eax
push ebx
push eax
push 0x1200
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
cmp word [0x40e3c0], 0
mov dword [esp + 0x6c], 0x40e3c0
je 0x408491
push 0x25
push 0x40e3c0
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x408491
lea eax, [esp + 0x64]
push eax
push 2
lea eax, [esp + 0x38]
push eax
push 0
push esi
push 0
push 0x2900
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageW]
test eax, eax
je 0x40592e
mov esi, dword [0x40ebc0]
mov edi, dword [esp + 0x30]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
je 0x40849b
mov eax, dword [esp + 0x2c]
add eax, eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x405924
mov edx, dword [esp + 0x2c]
push 0
push 0
lea ecx, [edx + edx]
push ecx
push esi
push edx
push edi
push 0
push 1
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40591d
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
push dword [0x40ebc0]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push dword [esp + 0x50]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40594f
push eax
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test esi, esi
je 0x40595a
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
cmp edi, dword [esp + 0x5c]
jne 0x405981
push dword [esp + 0x60]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405f50
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
jmp 0x405960
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x405936
call fcn.0040c820
mov ebx, eax
jmp 0x405936
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040a24b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x406779
call fcn.0040c820
mov edi, dword [esp + 0x38]
mov ebx, eax
jmp 0x405936
mov edi, dword [esp + 0x38]
jmp 0x405526
cmp dword [esp + 0x18], 2
jne 0x406797
call fcn.0040c820
mov ebx, eax
xor esi, esi
jmp 0x405936
mov eax, dword [edi + 4]
mov esi, 2
mov dword [esp + 0x1c], eax
jmp 0x40554e
mov eax, dword [esp + 0x10]
push 0x403a98
mov dword [esp + 0x44], ebx
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40557a
lea eax, [esi + 1]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x18], eax
jae 0x406812
cmp byte [0x40ebc4], 1
jne 0x4067f2
mov ecx, 0x6c
jmp 0x4067eb
mov ecx, 0x6a
xor edx, edx
call fcn.0040a4ce
call fcn.0040c820
jmp 0x40680b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403b70
call fcn.0040889b
mov ebx, eax
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 0x403c54
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406964
lea ebx, [esi + 2]
cmp dword [esp + 0x18], ebx
jae 0x40684c
xor edx, edx
lea ecx, [eax + 6]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x24]
mov eax, dword [edi + eax + 4]
mov dword [esp + 0x40], eax
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40688b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
push 0x14
push dword [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4068bd
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403c60
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
jbe 0x4068d0
mov eax, dword [esp + 0x10]
add eax, 8
add eax, edi
sub ecx, esi
push eax
sub ecx, 2
push ecx
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x406902
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403c94
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
push 0x24
lea eax, [esp + 0x78]
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x406927
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea eax, [esp + 0x70]
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x40694d
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push ebx
push eax
xor edx, edx
call fcn.004059c0
mov esi, dword [esp + 0x14]
jmp 0x405932
mov edx, ebx
mov ecx, 0x403c28
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov eax, dword [esp + 0x10]
push 0x403cb0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406a2a
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x40699e
xor edx, edx
lea ecx, [edx + 7]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4069cb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 2
jmp 0x4069e6
lea eax, [esp + 0x20]
push eax
push 0
push 0
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [edi + eax + 4]
jmp 0x406a03
xor eax, eax
mov edx, dword [edi + edx + 4]
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push ecx
push eax
push 1
mov ecx, esi
call fcn.0040c0ea
jmp 0x406a23
push dword [ebx + esi*4 + 8]
mov esi, dword [esp + 0x18]
mov ecx, esi
push dword [edi + ebx + 4]
mov edx, dword [esp + 0x24]
call fcn.0040c225
mov ebx, eax
jmp 0x405932
mov eax, dword [esp + 0x10]
push 0x403cbc
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406a9d
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x406a60
xor edx, edx
lea ecx, [edx + 8]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x406a8d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 4
jmp 0x4069e6
mov eax, dword [esp + 0x10]
push 0x403cd4
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406bac
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x406ad7
xor edx, edx
lea ecx, [edx + 9]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push dword [eax + esi*4 + 8]
lea ebx, [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
mov esi, eax
add esp, 4
test esi, esi
jne 0x406b75
push 0x403ce4
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406b0f
lea esi, [eax + 6]
jmp 0x406b75
push 0x403cfc
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406b29
lea esi, [eax + 7]
jmp 0x406b75
push 0x403d14
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406b43
lea esi, [eax + 8]
jmp 0x406b75
push 0x403d30
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406b5d
lea esi, [eax + 9]
jmp 0x406b75
push 0x403d4c
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406b75
lea esi, [eax + 0xa]
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4069d8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov eax, dword [esp + 0x10]
push 0x403d6c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406c2a
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x406be2
xor edx, edx
lea ecx, [edx + 0xa]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 3
jmp 0x4069e6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x403bb8
jmp 0x406c1e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x403fc4
mov edx, eax
call fcn.0040889b
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403d80
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406cc8
mov ecx, dword [esp + 0x18]
lea eax, [esi + 2]
cmp ecx, eax
jb 0x406cb4
lea ebx, [esi + 4]
cmp ecx, ebx
ja 0x406cb4
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406c8c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], ebx
jne 0x406c9c
mov ecx, dword [edx + esi*4 + 0xc]
jmp 0x406c9e
xor ecx, ecx
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jb 0x4069f0
mov eax, dword [edx + esi*4 + 8]
jmp 0x4069f2
xor edx, edx
lea ecx, [edx + 0xb]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 0x403d8c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406d54
mov ebx, dword [esp + 0x18]
lea eax, [esi + 3]
cmp ebx, eax
jae 0x406cf8
call fcn.00409ae6
mov ebx, eax
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406d2b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
sub ebx, esi
mov esi, dword [esp + 0x18]
sub ebx, 2
mov edx, dword [edi + ecx + 4]
lea eax, [ecx + 8]
push ebx
add eax, edi
mov ecx, esi
push eax
call fcn.0040ba26
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403d9c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406dd9
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x406d85
xor edx, edx
lea ecx, [edx + 0xc]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406db8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + esi*4 + 8]
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [edi + eax + 4]
call fcn.004089be
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403db4
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406e65
mov ebx, dword [esp + 0x18]
lea eax, [esi + 3]
cmp ebx, eax
jae 0x406e09
call fcn.0040899c
mov ebx, eax
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406e3c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
sub ebx, esi
mov esi, dword [esp + 0x18]
sub ebx, 2
mov edx, dword [edi + ecx + 4]
lea eax, [ecx + 8]
push ebx
add eax, edi
mov ecx, esi
push eax
call fcn.00408a3d
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403dc4
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406eea
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x406e96
xor edx, edx
lea ecx, [edx + 0x7c]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ec9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + esi*4 + 8]
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [edi + eax + 4]
call fcn.00408f29
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403dd0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x406f79
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x406f1b
xor edx, edx
lea ecx, [edx + 0x71]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406f4e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ebx, dword [esp + 0x10]
push dword [ebx + esi*4 + 8]
call dword [sym.imp.msvcrt.dll__wtol]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x24]
mov edx, dword [edi + ebx + 4]
add esp, 4
push ecx
push eax
mov ecx, esi
call fcn.00408d91
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403de8
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40700f
mov ebx, dword [esp + 0x18]
lea eax, [esi + 2]
cmp ebx, eax
jae 0x406fb3
xor edx, edx
mov ecx, 0x88
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406fe6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
sub ebx, esi
mov esi, dword [esp + 0x18]
sub ebx, 2
mov edx, dword [edi + ecx + 4]
lea eax, [ecx + 8]
push ebx
add eax, edi
mov ecx, esi
push eax
call fcn.004090ab
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403e00
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4070e7
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jb 0x407056
mov eax, dword [esp + 0x10]
lea esi, [eax + esi*4]
push 0x403e10
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407065
lea esi, [eax + 1]
jmp 0x407096
xor edx, edx
lea ecx, [edx + 0x75]
call fcn.0040a4ce
jmp 0x4082ad
push 0x403e2c
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40707f
lea esi, [eax + 3]
jmp 0x407096
push 0x403af0
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407056
xor esi, esi
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4070c9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [edi + eax + 4]
call fcn.0040902a
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403e44
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407192
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jb 0x40712e
mov eax, dword [esp + 0x10]
push 0x403e64
push dword [eax + esi*4 + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40713f
mov byte [esp + 0x34], 1
jmp 0x40715d
xor edx, edx
mov ecx, 0xa8
call fcn.0040a4ce
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 0x403e70
push dword [eax + esi*4 + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40712e
mov byte [esp + 0x34], bl
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
lea eax, [esp + 0x20]
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x38]
mov edx, dword [edi + eax + 4]
call fcn.00408e12
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403e7c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407226
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x4071c5
xor edx, edx
mov ecx, 0x96
call fcn.0040a4ce
jmp 0x4082ad
mov ebx, dword [esp + 0x10]
push dword [ebx + esi*4 + 8]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
movzx esi, ax
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40720c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov edx, dword [edi + ebx + 4]
lea eax, [esp + 0x20]
push eax
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00408e93
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403e98
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4072ab
mov eax, dword [esp + 0x18]
add esi, 2
cmp eax, esi
jae 0x40725e
xor edx, edx
lea ecx, [edx + 0xd]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x10]
cmp eax, esi
jbe 0x40727a
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov edx, dword [edi + ebx + 4]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
mov ecx, esi
call fcn.0040afc6
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403ea0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40737b
mov ebx, dword [esp + 0x18]
add esi, 2
cmp ebx, esi
jae 0x4072e7
xor edx, edx
lea ecx, [eax + 0xe]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40731a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
xor eax, eax
mov dword [esp + 0x24], eax
cmp ebx, esi
jbe 0x407338
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
push 1
jmp 0x407352
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
push 8
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push eax
jmp 0x407367
push 0xc
lea eax, [esp + 0x24]
push eax
push 4
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [edi + eax + 4]
call fcn.0040a506
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403ebc
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40740b
mov ebx, dword [esp + 0x18]
add esi, 2
cmp ebx, esi
jae 0x4073b3
xor edx, edx
lea ecx, [eax + 0xf]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4073e6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
xor eax, eax
mov dword [esp + 0x24], eax
cmp ebx, esi
jbe 0x407404
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
push 2
jmp 0x407352
mov eax, dword [esp + 0x10]
push 0x403ed0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407496
add esi, 2
cmp dword [esp + 0x18], esi
jae 0x40743c
xor edx, edx
lea ecx, [eax + 0x7b]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40746f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], esi
jbe 0x40748f
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
push 6
jmp 0x407352
mov eax, dword [esp + 0x10]
push 0x403ee0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4074ed
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x4074c7
xor edx, edx
lea ecx, [edx + 0x72]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
push 4
lea eax, [esp + 0x24]
push eax
push 4
jmp 0x407367
mov eax, dword [esp + 0x10]
push 0x403efc
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40756d
mov ebx, dword [esp + 0x18]
add esi, 2
cmp ebx, esi
jae 0x407527
xor edx, edx
mov ecx, 0x8e
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40755a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
xor eax, eax
mov dword [esp + 0x24], eax
cmp ebx, esi
jbe 0x407350
jmp 0x40733c
mov eax, dword [esp + 0x10]
push 0x403f18
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4075c4
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x40759e
xor edx, edx
lea ecx, [edx + 0x76]
call fcn.0040a4ce
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
push 5
lea eax, [esp + 0x24]
push eax
push 4
jmp 0x407367
mov eax, dword [esp + 0x10]
push 0x403f2c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40762a
cmp dword [esp + 0x18], 3
jne 0x407614
cmp esi, 1
jne 0x407614
push esi
push eax
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [edi + 8]
call fcn.0040b526
mov ebx, eax
jmp 0x405936
xor edx, edx
mov ecx, 0x86
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 0x403f3c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407688
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x407662
xor edx, edx
mov ecx, 0x97
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
push 9
lea eax, [esp + 0x24]
push eax
push 4
jmp 0x407367
mov eax, dword [esp + 0x10]
push 0x403f5c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4076e6
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x4076c0
xor edx, edx
mov ecx, 0xaa
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
push 0xb
lea eax, [esp + 0x24]
push eax
push 1
jmp 0x407367
mov eax, dword [esp + 0x10]
push 0x403f7c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40774c
push 0x10
push eax
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov ecx, dword [esp + 0x18]
mov eax, 0x1f4
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x30]
jbe 0x40773e
mov eax, dword [esp + 0x10]
push dword [edi + eax + 4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
mov edx, eax
mov ecx, esi
call fcn.0040b43f
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403f90
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4077a1
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x407784
xor edx, edx
mov ecx, 0xac
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
jmp 0x40735e
mov eax, dword [esp + 0x10]
push 0x403fa8
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4077dd
push 8
push eax
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov ecx, esi
call fcn.0040b86e
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403fb4
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407888
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jae 0x407817
xor edx, edx
lea ecx, [edx + 0x11]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov eax, dword [esp + 0x10]
push 0x10000
push dword [edi + eax + 4]
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40785b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x401478
jmp 0x406c1e
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
je 0x406c13
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x403fc4
mov ecx, 0x64
call fcn.0040a4ce
jmp 0x405932
mov eax, dword [esp + 0x10]
push 0x403fe0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40790f
mov ebx, dword [esp + 0x18]
lea eax, [esi + 3]
cmp ebx, eax
jae 0x4078b8
call fcn.00409b08
mov ebx, eax
jmp 0x4082ad
push 2
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4078eb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov ecx, dword [esp + 0x10]
sub ebx, esi
mov esi, dword [esp + 0x14]
sub ebx, 2
push ebx
mov edx, dword [edi + ecx + 4]
lea eax, [ecx + 8]
add eax, edi
mov ecx, esi
push eax
call fcn.00409b2a
jmp 0x406a23
mov eax, dword [esp + 0x10]
push 0x403ff0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4079a2
lea eax, [esi + 2]
cmp dword [esp + 0x18], eax
jb 0x40798e
mov esi, dword [esp + 0x10]
push 0x403ffc
push dword [edi + esi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407978
lea ecx, [eax + 1]
jmp 0x407952
xor ecx, ecx
call fcn.0040c9d5
test eax, eax
jne 0x4082ad
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x404004
call fcn.0040889b
mov ebx, eax
jmp 0x4082ad
push 0x404034
push dword [edi + esi + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x407950
xor edx, edx
lea ecx, [edx + 0x12]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
mov eax, dword [esp + 0x10]
push 0x40403c
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407ae7
add esi, 2
cmp dword [esp + 0x18], esi
jae 0x4079dc
xor edx, edx
lea ecx, [eax + 0x13]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407a0f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov eax, 0x1f4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], esi
jbe 0x407a8e
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x407a8e
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x18]
push dword [edi + eax + 4]
push esi
call dword [sym.imp.api_ms_win_service_core_l1_1_2.dll_GetServiceDisplayNameW]
test eax, eax
jne 0x407abe
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov ecx, 0x4040a4
mov edx, ebx
call fcn.0040889b
cmp ebx, 0x7a
jne 0x405932
mov eax, dword [esp + 0x24]
lea edx, [ebx - 0x14]
push 0
inc eax
mov ecx, 0x4040a4
push eax
call fcn.00408930
jmp 0x405932
add eax, eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x407a3a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x404060
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x4040a4
mov ecx, 0x64
call fcn.0040a4ce
lea edx, [esp + 0x34]
mov ecx, 0x24
call fcn.0040a4ce
jmp 0x405932
mov eax, dword [esp + 0x10]
push 0x4040d0
push dword [edi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407c2c
add esi, 2
cmp dword [esp + 0x18], esi
jae 0x407b21
xor edx, edx
lea ecx, [eax + 0x14]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b54
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov eax, 0x1f4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], esi
jbe 0x407bd3
mov eax, dword [esp + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jne 0x407bd3
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x18]
push dword [edi + eax + 4]
push esi
call dword [sym.imp.api_ms_win_service_core_l1_1_2.dll_GetServiceKeyNameW]
test eax, eax
jne 0x407c03
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov ecx, 0x404124
mov edx, ebx
call fcn.0040889b
cmp ebx, 0x7a
jne 0x405932
mov eax, dword [esp + 0x24]
lea edx, [ebx - 0x14]
push 0
inc eax
mov ecx, 0x404124
push eax
call fcn.00408930
jmp 0x405932
add eax, eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x407b7f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x4040e8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x404124
mov ecx, 0x64
call fcn.0040a4ce
lea edx, [esp + 0x44]
mov ecx, 0x24
call fcn.0040a4ce
jmp 0x405932
mov ebx, dword [esp + 0x10]
push 0x404148
push dword [edi + ebx]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407ccd
add esi, 2
cmp dword [esp + 0x18], esi
jae 0x407c66
xor edx, edx
lea ecx, [eax + 0x15]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407c99
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
mov eax, 0x1f4
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], esi
jbe 0x407cb8
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [edi + ebx + 4]
push eax
call fcn.0040a0eb
jmp 0x406a23
push 0x404160
push dword [edi + ebx]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407d52
mov eax, dword [esp + 0x18]
add esi, 2
xor ebx, ebx
cmp eax, esi
jae 0x407d03
xor edx, edx
lea ecx, [ebx + 0x16]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
jbe 0x407d21
mov eax, dword [esp + 0x10]
push 0x404170
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407d21
lea ebx, [eax + 1]
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x1c]
push ebx
push dword [edi + eax + 4]
call fcn.0040c3b6
jmp 0x406a23
push 0x404188
push dword [edi + ebx]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407dbe
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jae 0x407d84
xor edx, edx
lea ecx, [edx + 0x17]
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
push 0x40000000
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406a0c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x403bb8
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932
push 0x404194
push dword [edi + ebx]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407e1e
cmp dword [esp + 0x18], 3
jne 0x407e08
cmp esi, 1
jne 0x407e08
push esi
push eax
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x406c06
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 8]
call fcn.0040b712
mov ebx, eax
jmp 0x405936
xor edx, edx
mov ecx, 0xb2
call fcn.0040a4ce
mov ebx, 0x667
jmp 0x4082ad
cmp byte [0x40ebc4], 1
jne 0x4067f2
mov ecx, 0x6d
jmp 0x4067eb
mov esi, dword [esp + 0x18]
inc edi
cmp esi, edi
jbe 0x407e9b
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x4c], eax
jmp 0x407e9b
mov esi, dword [esp + 0x18]
inc edi
cmp esi, edi
jbe 0x407e9b
mov esi, dword [ebx + edi*4]
mov ecx, 0x403aa8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407e89
test dx, dx
je 0x407e85
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407e89
add eax, 4
add ecx, 4
test dx, dx
jne 0x407e63
xor eax, eax
jmp 0x407e8e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407ea4
or dword [esp + 0x28], 0xb
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x405733
mov ecx, 0x403ab8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407ed1
test dx, dx
je 0x407ecd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407ed1
add eax, 4
add ecx, 4
test dx, dx
jne 0x407eab
xor eax, eax
jmp 0x407ed6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407ee1
or dword [esp + 0x28], 0x30
jmp 0x407e97
mov ecx, 0x403ac8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f0e
test dx, dx
je 0x407f0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f0e
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ee8
xor eax, eax
jmp 0x407f13
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407f24
or dword [esp + 0x28], 0x3ff
jmp 0x407e97
mov ecx, 0x403ad0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f51
test dx, dx
je 0x407f4d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f51
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f2b
xor eax, eax
jmp 0x407f56
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407f67
or dword [esp + 0x28], 0x100
jmp 0x407e97
mov ecx, 0x403ae4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f94
test dx, dx
je 0x407f90
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f94
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f6e
xor eax, eax
jmp 0x407f99
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407fa9
or eax, 0xffffffff
mov dword [esp + 0x28], eax
jmp 0x407e97
mov ecx, 0x403af0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fd6
test dx, dx
je 0x407fd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407fb0
xor eax, eax
jmp 0x407fdb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407ff0
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 1
jmp 0x407e97
mov ecx, 0x403afc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40801d
test dx, dx
je 0x408019
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40801d
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ff7
xor eax, eax
jmp 0x408022
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408030
or dword [esp + 0x28], 1
jmp 0x407e97
mov ecx, 0x403b0c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40805d
test dx, dx
je 0x408059
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40805d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408037
xor eax, eax
jmp 0x408062
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408070
or dword [esp + 0x28], 2
jmp 0x407e97
mov ecx, 0x403b1c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40809d
test dx, dx
je 0x408099
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40809d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408077
xor eax, eax
jmp 0x4080a2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4080b0
or dword [esp + 0x28], 4
jmp 0x407e97
mov ecx, 0x403b2c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4080dd
test dx, dx
je 0x4080d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4080dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4080b7
xor eax, eax
jmp 0x4080e2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4080f0
or dword [esp + 0x28], 0x10
jmp 0x407e97
mov ecx, 0x403b34
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40811d
test dx, dx
je 0x408119
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40811d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4080f7
xor eax, eax
jmp 0x408122
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408130
or dword [esp + 0x28], 0x20
jmp 0x407e97
mov eax, 0x403b40
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40815b
test cx, cx
je 0x408157
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40815b
add esi, 4
add eax, 4
test cx, cx
jne 0x408135
xor eax, eax
jmp 0x408160
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408288
or dword [esp + 0x28], 0x40
jmp 0x407e97
mov esi, dword [esp + 0x18]
inc edi
cmp esi, edi
jbe 0x407e9b
mov esi, dword [ebx + edi*4]
mov ecx, 0x403b58
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4081af
test dx, dx
je 0x4081ab
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4081af
add eax, 4
add ecx, 4
test dx, dx
jne 0x408189
xor eax, eax
jmp 0x4081b4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4081c5
mov dword [esp + 0x2c], 2
jmp 0x407e97
mov ecx, 0x403ac8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4081f2
test dx, dx
je 0x4081ee
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4081f2
add eax, 4
add ecx, 4
test dx, dx
jne 0x4081cc
xor eax, eax
jmp 0x4081f7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408208
mov dword [esp + 0x2c], 3
jmp 0x407e97
mov eax, 0x403ae4
mov cx, word [esi]
cmp cx, word [eax]
jne 0x408233
test cx, cx
je 0x40822f
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x408233
add esi, 4
add eax, 4
test cx, cx
jne 0x40820d
xor eax, eax
jmp 0x408238
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408292
mov dword [esp + 0x2c], 0xffffffff
jmp 0x407e97
mov esi, dword [esp + 0x18]
inc edi
mov edx, dword [esp + 0x14]
cmp esi, edi
jbe 0x405733
mov eax, dword [ebx + edi*4]
mov dword [esp + 0x38], eax
jmp 0x405733
mov esi, dword [esp + 0x18]
inc edi
cmp esi, edi
jbe 0x407e9b
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x407e9b
mov dword [esp + 0x3c], 0x4011a4
jmp 0x40829a
mov dword [esp + 0x3c], 0x401194
lea edx, [esp + 0x3c]
mov ecx, 0x69
call fcn.0040a4ce
mov ebx, 0x57
xor esi, esi
jmp 0x405932
xor edi, edi
mov dword [esp + 0x50], edi
jmp 0x405769
cmp byte [0x40ebc4], 1
jne 0x4067f2
jmp 0x4067e6
cmp byte [0x40ebc4], 1
jne 0x4067f2
jmp 0x4067e6
push 4
push 0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x406c06
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x408316
cmp dword [esp + 0x30], ecx
jne 0x408316
mov ecx, 0x30
mov dword [esp + 0x28], ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x40], ebx
je 0x408369
mov eax, dword [esp + 0x38]
mov edx, ecx
mov dword [esp + 0x44], edi
mov ecx, esi
test eax, eax
jne 0x408335
push eax
jmp 0x408336
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x34]
push edi
push dword [esp + 0x44]
call fcn.0040c86a
test eax, eax
jne 0x4083e5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x4083a3
push dword [esp + 0x38]
lea eax, [esp + 0x50]
mov dword [esp + 0x58], edi
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x34]
push edi
push dword [esp + 0x44]
push ecx
push 0
push esi
call dword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumServicesStatusExW]
test eax, eax
jne 0x4083e5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4083e5
cmp ebx, 0xea
je 0x4083e5
cmp dword [esp + 0x40], 0
lea edi, [esp + 0x70]
mov ecx, 0xa
mov esi, 0x403bd4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4083d2
xor eax, eax
mov word [esp + 0x94], ax
mov edx, ebx
lea ecx, [esp + 0x70]
call fcn.0040889b
mov ebx, eax
mov eax, dword [esp + 0x48]
jmp 0x40844b
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
je 0x40844f
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
test edi, edi
je 0x408414
mov ecx, dword [ebx]
lea eax, [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 4]
add ebx, 0x24
mov eax, 1
jmp 0x40842f
mov edx, dword [esp + 0x54]
mov ecx, dword [edx]
lea eax, [edx + 8]
mov dword [esp + 0x1c], eax
lea eax, [edx + 4]
add edx, 0x2c
mov dword [esp + 0x54], edx
mov edx, dword [eax]
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004059c0
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jb 0x4083f7
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
cmp ebx, 0xea
jne 0x405932
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x408316
push dword [esp + 0x4c]
mov edx, 0x67
mov ecx, 0x403c00
push dword [esp + 0x5c]
call fcn.00408930
jmp 0x405932
xor edx, edx
lea ecx, [edx + 0x6b]
jmp 0x4082a3
mov esi, 0x87
jmp 0x40588f
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
test eax, eax
je 0x4058d2
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x34]
push edi
push dword [0x40ebc0]
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
jmp 0x405924
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
push edi
push 0
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4057c7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x4057c7
cmp dword [esp + 0x40], 0
lea edi, [esp + 0x70]
mov ecx, 0xa
mov esi, 0x403c28
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x40851d
xor eax, eax
mov word [esp + 0x94], ax
mov edx, ebx
lea ecx, [esp + 0x70]
call fcn.0040889b
mov esi, dword [esp + 0x14]
mov ebx, eax
jmp 0x405932