Function at 0x40ba26
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x3c], 0xffffffff
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
push edi
xor edi, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0xc], edi
jbe 0x40bf39
xor ebx, ebx
inc ebx
add esi, 4
mov dword [ebp - 0x40], ebx
push 0x4011a4
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bbb7
cmp ebx, dword [ebp + 0xc]
jae 0x40bbb7
mov ecx, dword [ebp - 0x3c]
push 0x403b2c
push dword [esi]
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov ebx, eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bad0
push 0x10
jmp 0x40bb8e
push 0x403b34
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40baea
push 0x20
jmp 0x40bb8e
push 0x4041f4
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb04
push 0x50
jmp 0x40bb8e
push 0x404204
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb1b
push 0x60
jmp 0x40bb8e
push 0x403ad0
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb35
mov eax, 0x100
jmp 0x40bbad
push 0x403afc
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb4b
inc eax
jmp 0x40bbad
push 0x403b0c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb62
push 2
jmp 0x40bb8e
push 0x404218
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb79
push 8
jmp 0x40bb8e
push 0x404220
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bb91
push 4
pop eax
jmp 0x40bbad
push 0x403ae4
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bed6
mov eax, 0x2f309a20
or ebx, eax
mov dword [ebp - 0x3c], ebx
jmp 0x40beb9
push 0x40422c
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc9c
cmp ebx, dword [ebp + 0xc]
jae 0x40bc9c
push 0x403ff0
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bbf2
mov ebx, edi
jmp 0x40bc94
push 0x40423c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc0d
xor ebx, ebx
inc ebx
jmp 0x40bc94
push 0x40424c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc24
push 2
jmp 0x40bc50
push 0x404258
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc3b
push 3
jmp 0x40bc50
push 0x404268
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc53
push 4
pop ebx
jmp 0x40bc94
push 0x40427c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bc78
push 2
pop ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], 1
jmp 0x40bebc
push 0x403ae4
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40befb
mov ebx, 0xd0034911
mov dword [ebp - 0x20], ebx
jmp 0x40bebc
push 0x404298
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bd58
cmp ebx, dword [ebp + 0xc]
jae 0x40bd58
push 0x4042a8
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bcdc
mov dword [ebp - 0x2c], 1
jmp 0x40beb9
push 0x4042b8
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bcfb
mov dword [ebp - 0x2c], 2
jmp 0x40beb9
push 0x4042c8
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bd16
mov dword [ebp - 0x2c], edi
jmp 0x40beb9
push 0x4042d8
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bd35
mov dword [ebp - 0x2c], 3
jmp 0x40beb9
push 0x403ae4
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bf0d
mov dword [ebp - 0x2c], 0xd74550
jmp 0x40beb9
push 0x4042ec
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bd7b
cmp ebx, dword [ebp + 0xc]
jae 0x40bd7b
mov eax, dword [esi]
mov dword [ebp - 0x5c], eax
jmp 0x40beb9
push 0x401184
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bd9e
cmp ebx, dword [ebp + 0xc]
jae 0x40bd9e
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
jmp 0x40beb9
push 0x404300
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bdd9
cmp ebx, dword [ebp + 0xc]
jae 0x40bdd9
push 0x40430c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40beb9
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], eax
jmp 0x40beb9
push 0x404314
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40be5b
cmp ebx, dword [ebp + 0xc]
jae 0x40be5b
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0x28], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40bdfc
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 4]
push ebx
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40bf1f
push dword [ebp - 0x28]
mov edx, ebx
mov ecx, eax
call fcn.0040c6c3
mov eax, dword [ebp - 0x44]
mov ecx, eax
movzx eax, word [eax]
test ax, ax
je 0x40beb9
mov edx, eax
cmp dx, 0x2f
jne 0x40be4c
xor eax, eax
mov word [ecx], ax
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40be41
jmp 0x40beb9
push 0x404368
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40be7b
cmp ebx, dword [ebp + 0xc]
jae 0x40be7b
mov eax, dword [esi]
mov dword [ebp - 0x54], eax
jmp 0x40beb9
push 0x404374
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40be9b
cmp ebx, dword [ebp + 0xc]
jae 0x40be9b
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
jmp 0x40beb9
push 0x404388
push dword [esi - 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40bef1
cmp ebx, dword [ebp + 0xc]
jae 0x40bef1
mov eax, dword [esi]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
add esi, 8
add eax, 2
mov dword [ebp - 0x40], eax
dec eax
cmp eax, dword [ebp + 0xc]
jae 0x40bf36
mov ebx, dword [ebp - 0x40]
jmp 0x40ba87
cmp byte [0x40ebc4], 1
jne 0x40bef1
mov dword [ebp - 0x28], 0x4011a4
push 0x69
lea edx, [ebp - 0x28]
pop ecx
call fcn.0040a4ce
call fcn.00409ae6
jmp 0x40c0d7
cmp byte [0x40ebc4], 1
jne 0x40bef1
mov dword [ebp - 0x28], 0x40422c
jmp 0x40bee6
cmp byte [0x40ebc4], 1
jne 0x40bef1
mov dword [ebp - 0x28], 0x404298
jmp 0x40bee6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x404328
mov edx, eax
call fcn.0040889b
jmp 0x40c0d7
mov edx, dword [ebp - 0x60]
xor eax, eax
cmp ebx, 0xffffffff
setne al
add eax, 2
push eax
push edx
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
test eax, eax
jne 0x40bf65
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x401478
jmp 0x40bf2a
cmp ebx, 0xffffffff
je 0x40bfe3
lea ecx, [ebp - 0x30]
push ecx
push 4
lea ecx, [ebp - 0x24]
push ecx
push 3
push eax
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfig2W]
test eax, eax
jne 0x40bfa7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 0x7c
jne 0x40bf94
cmp dword [ebp - 0x34], 1
jne 0x40bfe3
mov edx, esi
mov ecx, 0x4043a8
call fcn.0040889b
mov eax, esi
jmp 0x40c0d7
mov esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x24]
je 0x40bfe6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
mov eax, dword [ebp - 0x38]
push 3
push dword [eax]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40bfd7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x40c070
xor eax, eax
test esi, esi
sete al
mov dword [ebp - 0x24], eax
jmp 0x40bfe6
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x54]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x2c]
push ebx
push ecx
push dword [eax]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40c07e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x40c07e
mov edx, edi
mov ecx, 0x404464
call fcn.0040889b
cmp ebx, 0xffffffff
je 0x40c0d5
cmp ebx, 4
je 0x40c04a
cmp edi, 0xb7
jne 0x40c04a
xor edx, edx
lea ecx, [edi - 0x10]
call fcn.0040a4ce
cmp esi, dword [ebp - 0x24]
je 0x40c0d5
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 3
push dword [eax]
call dword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40c0d5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov edx, edi
mov ecx, 0x404408
call fcn.0040889b
jmp 0x40c0d5
push 0x64
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x404464
pop ecx
call fcn.0040a4ce
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40c0b9
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax]
call dword [sym.imp.msvcrt.dll__ultow]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
push 0x29
pop ecx
call fcn.0040a4ce
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x40c0d5
test eax, 0x100
je 0x40c0d5
lea edx, [ebp - 0x60]
mov ecx, 0x84
call fcn.0040a4ce
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f50
mov esp, ebp
pop ebp
ret 0xc