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

Disassembly:
push 0xffffffffffffffff
push 0x447e88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
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 0x420430
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420430
sub eax, edx
sar eax, 1
je 0x42058b
push 0x2c
lea ecx, [esp + 0x2c]
mov edi, esi
call fcn.004217a0
add esp, 4
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00410d70
test eax, eax
jbe 0x4204af
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x420489
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 0x420492
call fcn.00422ffd
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.00410d70
cmp esi, eax
jb 0x420468
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.00422540
add esp, 4
mov dword [esp + 0x24], eax
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
jmp 0x4204e0
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x420584
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 0x420582
test edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edi + 0x14]
mov dword [esp + 0x20], eax
je 0x420534
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 0x420541
call fcn.00422ffd
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + edi + 0x18], 8
jb 0x42054e
mov edi, dword [ecx + edi + 4]
jmp 0x420552
lea edi, [ecx + edi + 4]
mov ecx, dword [esp + 0x20]
push edi
add ecx, 1
push ecx
push esi
call fcn.00422e62
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 0x4204e0
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 0x42059d
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 0x4205df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp edi, ebx
je 0x4205ec
push edi
call fcn.00422ece
add esp, 4
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x420635
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x42062c
add esi, 0x18
nop
cmp dword [esi], 8
jb 0x420611
mov eax, dword [esi - 0x14]
push eax
call fcn.00422ece
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 0x420600
mov esi, dword [esp + 0x2c]
push esi
call fcn.00422ece
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