Function at 0x4024f0
Capabilities:
Start service

Disassembly:
mov eax, 0x2014
call fcn.0040a6f0
push ebx
push ebp
push esi
push edi
call fcn.0040a3e0
test eax, eax
jl 0x402725
cmp eax, 0xfffffffb
jge 0x402725
mov dword [esp + 0x14], 0
lea edi, [esp + 0x20]
mov ebp, 0x400
lea eax, [esp + 0x10]
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [esi*4]
inc esi
cmp esi, 0x3ff
mov dword [esp + eax + 0x1024], eax
jle 0x40252f
call fcn.00406040
lea ecx, [esp + 0x10]
push ecx
push 0x4150a4
call fcn.00405ce0
call fcn.00405d30
mov edx, dword [esp + 0x18]
push 0x400
lea eax, [esp + 0x1030]
push edx
push eax
call fcn.00406350
push 0x419e40
push 0x419e40
mov ebx, eax
call fcn.0040a360
add esp, 0x1c
test ebx, ebx
je 0x402592
mov ecx, dword [ebx]
jmp 0x4025ae
mov edx, dword [esp + 0x10]
push 0x3ff
lea eax, [esp + 0x1028]
push edx
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x10]
mov dword [esp + esi*4 + 0x1024], ecx
push edx
push 0x4150a4
call fcn.00405ce0
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [esp + 0x10]
push eax
push 0x4150a4
call fcn.00405ce0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x102c]
push eax
push eax
push ecx
call fcn.00406350
mov eax, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x1024]
push 0x3ff
push eax
push 0x3ff
push eax
push edx
call fcn.00406350
add esp, 0xc
push eax
call fcn.00406350
mov esi, dword [eax]
push 0x3fb
lea eax, [esp + 0x30]
push 8
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0x18
add edi, 4
dec ebp
lea edx, [ecx + esi*2]
mov dword [edi - 4], edx
jne 0x402525
call fcn.00405d30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x3fa
lea eax, [esp + 0x24]
push 0x53
push eax
call fcn.00406350
call fcn.00405d90
mov ecx, dword [esp + 0x20]
push 0x400
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00406350
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
push 0x4150a4
call fcn.00405ce0
add esp, 0x20
lea esi, [esp + 0x34]
mov ebx, 0x3fe
push 0x19b
lea ecx, [esp + 0x24]
push 0x363
push ecx
call fcn.00406350
add esp, 0xc
mov edi, eax
call fcn.00405d90
mov edx, dword [edi]
add esi, 4
dec ebx
lea eax, [edx + eax*2]
mov dword [esi - 4], eax
jne 0x4026a1
test ebp, ebp
je 0x4026d9
mov ecx, dword [ebp]
add ecx, 3
jmp 0x4026f2
mov edx, dword [esp + 0x14]
push 0x3ff
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00406350
mov ecx, dword [eax]
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0x3c9
push eax
push 0x3ff
lea edx, [esp + 0x2c]
push eax
push edx
mov dword [esp + 0x1030], ecx
call fcn.00406350
add esp, 0xc
push eax
call fcn.00406350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004013f0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40274b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2014
ret
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne cl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [esp + 0x20], cl
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
call fcn.0040a3e0
cmp eax, ebx
jl 0x4029b0
cmp eax, 0xfffffffb
jge 0x4029b0
lea eax, [esp + 0x10]
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [esi*4]
inc esi
cmp esi, 0x3ff
mov dword [esp + eax + 0x1024], eax
jle 0x40278d
call fcn.00406040
lea ecx, [esp + 0x10]
push ecx
push 0x4150a4
call fcn.00405ce0
add esp, 8
call fcn.00405d00
mov eax, 0x417db8
mov edx, dword [eax - 4]
mov ecx, dword [eax]
cmp edx, ecx
jg 0x4027da
add eax, 4
cmp eax, 0x419db4
jl 0x4027c5
jmp 0x4027df
call fcn.00405d00
mov eax, dword [esp + 0x10]
push 0x400
lea ecx, [esp + 0x1028]
push eax
push ecx
call fcn.00406350
push 0x419e40
push 0x419e40
mov edi, eax
call fcn.0040a360
add esp, 0x14
cmp edi, ebx
je 0x402812
mov edx, dword [edi]
jmp 0x40282e
mov eax, dword [esp + 0x10]
push 0x3ff
lea ecx, [esp + 0x1028]
push eax
push ecx
call fcn.00406350
mov edx, dword [eax]
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + esi*4 + 0x1024], edx
push eax
push 0x4150a4
call fcn.00405ce0
push 0x419e40
push 0x419e40
call fcn.0040a360
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
push ecx
push 0x4150a4
call fcn.00405ce0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x102c]
push eax
push eax
push edx
call fcn.00406350
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0x3ff
push eax
push 0x3ff
push eax
lea eax, [esp + 0x1034]
push eax
call fcn.00406350
add esp, 0xc
push eax
call fcn.00406350
mov dword [esp + 0x20], ebx
add esp, 0xc
lea esi, [esp + 0x20]
mov ebx, 0x400
push 0x3fb
lea ecx, [esp + 0x24]
push 8
push ecx
call fcn.00406350
add esp, 0xc
mov edi, eax
call fcn.00405d90
mov edx, dword [edi]
add esi, 4
dec ebx
lea eax, [edx + eax*2]
mov dword [esi - 4], eax
jne 0x4028b7
call fcn.00405d30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x3fa
lea ecx, [esp + 0x24]
push 0x53
push ecx
call fcn.00406350
call fcn.00405d90
mov edx, dword [esp + 0x20]
push 0x400
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00406350
lea ecx, [esp + 0x2c]
mov ebp, eax
push ecx
push 0x4150a4
call fcn.00405ce0
add esp, 0x20
lea esi, [esp + 0x34]
mov ebx, 0x3fe
push 0x19b
lea edx, [esp + 0x24]
push 0x363
push edx
call fcn.00406350
add esp, 0xc
mov edi, eax
call fcn.00405d90
mov ecx, dword [edi]
add esi, 4
dec ebx
lea edx, [ecx + eax*2]
mov dword [esi - 4], edx
jne 0x402932
test ebp, ebp
je 0x40296a
mov eax, dword [ebp]
add eax, 3
jmp 0x402983
mov ecx, dword [esp + 0x14]
push 0x3ff
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00406350
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x101c], eax
mov eax, dword [esp + 0x14]
push 0x3c9
push eax
push 0x3ff
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00406350
add esp, 0xc
push eax
call fcn.00406350
add esp, 0xc
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x2014
ret