Function at 0x70e79da0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov al, byte [0x70ea1600]
sub esp, 0x94
push ebx
push esi
push edi
test al, 1
je 0x70e79f8f
test al, 2
jne 0x70e79f8f
push 0x84
xor esi, esi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.70e899f0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, edi
cdq
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov eax, ebx
cdq
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], edx
cdq
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x64], edx
cdq
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x80], edx
cdq
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x88], edx
cdq
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x98], edx
cdq
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0xa0], edx
cdq
mov dword [esp + 0xa8], edx
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x9c], eax
mov eax, dword [0x70ea15f4]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x20]
push 0x7afd0010
push eax
mov dword [esp + 0x74], ecx
mov eax, 0x88
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], esi
mov ecx, edx
lea esi, [esp + 0x20]
mov edx, eax
mov dword [esp + 0x24], 8
call fcn.70e73160
add esp, 0xc
cmp dword [esp + 0x30], 0x87a00002
jne 0x70e79eee
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x70ea11f4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [0x70ea1268]
push eax
push ebx
push edi
call fcn.70e72da0
call eax
cmp dword [esp + 0x30], 0x87a00001
mov edi, eax
jne 0x70e79f84
test edi, edi
jne 0x70e79f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
jmp 0x70e79f4d
mov dword [esp + 0x24], 0
mov eax, edi
cdq
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], edx
mov edx, dword [0x70ea15f4]
mov dword [esp + 0x2c], eax
push 0x7afd0010
mov eax, 0x88
push edx
lea esi, [esp + 0x20]
mov edx, eax
mov dword [esp + 0x2c], 1
call fcn.70e73160
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov edi, dword [ebp + 0x10]
mov ecx, edi
test edi, edi
jne 0x70e79f9d
mov ecx, 0x70e94f6c
mov ebx, dword [ebp + 0xc]
mov eax, ebx
test ebx, ebx
jne 0x70e79fab
mov eax, 0x70e94f6c
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push edx
push ecx
push eax
push esi
push str.HFunc_CreateServiceW__h_x__name_ws__disp_ws___x___x___x__n
push 0x70ea0aa8
call dword [0x70ea11cc]
add esp, 0x20
push 0x70ea0aa8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 4
push ebx
push esi
call fcn.70e7a2f0
mov esi, eax
test esi, esi
je 0x70e7a011
push str.___already_exist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.70e797c0
push 0x431
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x70e7a1d7
push 1
push ebx
call fcn.70e752b0
mov esi, eax
add esp, 8
test esi, esi
je 0x70e7a1cf
push str.Type
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
push 4
lea ecx, [ebp + 0x18]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
push str.Start
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
push 4
lea ecx, [ebp + 0x1c]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
push str.ErrorControl
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
push 4
lea ecx, [ebp + 0x20]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
test edi, edi
je 0x70e7a10d
push str.DisplayName
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70e7a0e0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x70e7a159
push str.ImagePath
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70e7a130
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
mov edi, dword [ebp + 0x34]
test edi, edi
je 0x70e7a19e
push str.ObjectName
lea eax, [esp + 0x10]
push eax
call dword [0x70ea1180]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70e7a175
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [0x70ea1190]
test eax, eax
jl 0x70e7a1c1
mov edi, ebx
call fcn.70e75bc0
mov edi, eax
test edi, edi
je 0x70e7a1c1
push edi
call fcn.70e75d20
add esp, 4
push edi
test eax, eax
jne 0x70e7a1e2
call fcn.70e75c50
add esp, 4
push esi
call dword [0x70ea119c]
push esi
call dword [0x70ea11a4]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push str.___got_h_x_n
push 0x70ea0aa8
call dword [0x70ea11cc]
add esp, 0xc
push 0x70ea0aa8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [0x70ea11a4]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34