Function at 0x420340
Capabilities:
Check for peb beingdebugged flag
Create service

Disassembly:
push 0xffffffffffffffff
push 0x448358
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, esi
xor ebp, ebp
mov dword [esp + 0x40], ebx
xor edi, edi
lea edx, [eax + 2]
jmp 0x420390
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420390
sub eax, edx
sar eax, 1
je 0x4204eb
push 0x2c
lea ecx, [esp + 0x2c]
mov edi, esi
call fcn.00421700
add esp, 4
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00410c70
test eax, eax
jbe 0x42040f
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4203e9
mov ecx, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4203f2
call fcn.004228be
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx + edi + 0x14]
lea ecx, [esp + 0x28]
lea ebp, [eax + ebp + 1]
add esi, 1
add ebx, 0x1c
call fcn.00410c70
cmp esi, eax
jb 0x4203c8
xor ebx, ebx
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042260a
add esp, 4
mov dword [esp + 0x24], eax
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
jmp 0x420440
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x4204e4
mov ebx, dword [esp + 0x30]
mov ecx, ebx
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x4204e2
test edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edi + 0x14]
mov dword [esp + 0x20], eax
je 0x420494
sub ebx, edi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4204a1
call fcn.004228be
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + edi + 0x18], 8
jb 0x4204ae
mov edi, dword [ecx + edi + 4]
jmp 0x4204b2
lea edi, [ecx + edi + 4]
mov ecx, dword [esp + 0x20]
push edi
add ecx, 1
push ecx
push esi
call fcn.004231e5
mov edx, dword [esp + 0x2c]
add dword [esp + 0x24], 0x1c
lea esi, [esi + edx*2]
mov word [esi], 0
add esp, 0xc
add esi, 2
add ebp, 1
xor ebx, ebx
jmp 0x420440
xor ebx, ebx
mov edi, dword [esp + 0x24]
mov word [esi], bx
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4204fd
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
mov eax, dword [esp + 0x68]
push 1
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esi]
push 0xf003f
push eax
push ecx
push edx
mov dword [esi + 4], ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x42053f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp edi, ebx
je 0x42054c
push edi
call fcn.00422b32
add esp, 4
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x420595
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x42058c
add esi, 0x18
nop
cmp dword [esi], 8
jb 0x420571
mov eax, dword [esi - 0x14]
push eax
call fcn.00422b32
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x420560
mov esi, dword [esp + 0x2c]
push esi
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x18