Function at 0x408fc0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x41d9ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x47c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.0040cc10
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x498], ebx
call fcn.0040cc10
lea edx, [esp + 0x7c]
push 0x104
push edx
push ebx
mov byte [esp + 0x4a0], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.0040cd20
test al, al
je 0x409067
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.0040cd00
mov eax, dword [0x407740]
push 1
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f], 0x5c
call fcn.0040c9d0
mov edx, dword [0x407740]
inc eax
push edx
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x30]
push eax
call fcn.0040c190
mov ecx, dword [0x407740]
mov byte [esp + 0x494], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.0040c540
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x498], 1
call fcn.0040cc10
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.0040cd20
test al, al
je 0x40911c
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x401008
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0040cd00
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, 0x403578
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x407740]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x403578
lea ecx, [esp + 0x44]
call fcn.0040cab0
mov edx, dword [esp + 0x4e]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x4e]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x68]
push 0x403568
push edx
call fcn.0041531f
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040c480
mov edi, 0x403528
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x403528
push ebx
lea ecx, [esp + 0x24]
call fcn.0040c740
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0x407744
cmp eax, ebx
je 0x4091d7
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x49c]
lea ecx, [esp + 0x14]
push ecx
push 1
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x409212
mov al, byte [ecx - 1]
cmp al, bl
je 0x409208
cmp al, 0xff
je 0x409208
dec al
mov byte [ecx - 1], al
jmp 0x409212
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x409242
mov al, byte [ecx - 1]
cmp al, bl
je 0x409238
cmp al, 0xff
je 0x409238
dec al
mov byte [ecx - 1], al
jmp 0x409242
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x409272
mov al, byte [ecx - 1]
cmp al, bl
je 0x409268
cmp al, 0xff
je 0x409268
dec al
mov byte [ecx - 1], al
jmp 0x409272
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x488
ret