Function at 0x679690
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cbdb
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
push eax
mov dword [esi + 0xc8], 0
call fcn.00679480
cmp dword [esi + 0xa8], 0
jne 0x6796e6
xor ecx, ecx
jmp 0x6796f7
cmp dword [esi + 0xac], 8
lea ecx, [esi + 0x98]
jb 0x6796f7
mov ecx, dword [ecx]
cmp dword [esi + 0x74], 0
jne 0x679701
xor edx, edx
jmp 0x67970c
cmp dword [esi + 0x78], 8
lea edx, [esi + 0x64]
jb 0x67970c
mov edx, dword [edx]
cmp dword [esi + 0x5c], 0
jne 0x679716
xor edi, edi
jmp 0x679721
cmp dword [esi + 0x60], 8
lea edi, [esi + 0x4c]
jb 0x679721
mov edi, dword [edi]
xor ebx, ebx
lea eax, [esi + 0x48]
cmp dword [eax], ebx
cmovne ebx, eax
cmp dword [esi + 0x40], 0
mov dword [ebp - 0x54], ebx
jne 0x67973d
mov dword [ebp - 0x44], 0
jmp 0x67974e
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
mov dword [ebp - 0x44], eax
jb 0x67974e
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
cmp dword [esi + 0x28], 0
jne 0x67975d
mov dword [ebp - 0x48], 0
jmp 0x67976e
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
mov dword [ebp - 0x48], eax
jb 0x67976e
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
cmp dword [esi + 0x8c], 0
jne 0x67977b
xor eax, eax
jmp 0x679789
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x679789
mov eax, dword [eax]
cmp dword [esi + 0xc0], 0
lea ebx, [esi + 0xb0]
jne 0x6797a7
mov dword [ebp - 0x4c], 0
lea ebx, [esi + 0xb0]
jmp 0x6797b8
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x4c], ebx
jb 0x6797b8
mov esi, dword [ebx]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x50]
push ecx
push edx
push edi
push dword [ebp - 0x54]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x94]
push eax
push dword [ebp - 0x4c]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x67981e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6797f4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov ecx, esi
mov dword [esi + 8], edi
call fcn.00679c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0x104]
mov esi, eax
call fcn.00452f50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.0047d770
add esp, 8
push str.__Cannot_create_service.
push eax
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 1
push 0x68fd20
push eax
call fcn.00456150
add esp, 8
push eax
call fcn.00456620
add esp, 8
push eax
call fcn.00456150
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0044da70
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x104]
call fcn.00452f30
push esi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x20]
push eax
call fcn.004a18e8
int3