Function at 0x100096d3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
and byte [ebp - 0x228], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
and byte [ebp - 0x128], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf003f
push esi
push esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
stosb byte es:[edi], al
call dword [0x10019a48]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10009734
push str.OpenSCManager_Error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, 0x10000
push ebx
push 0x40
call edi
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push 3
push 0x30
push dword [ebp - 0x14]
call dword [0x10019a3c]
push 0x104
push 0x40
call edi
and dword [ebp - 0x10], 0
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 1
mov byte [ebx], 0x77
cmp dword [ebp - 0x1c], 0
jbe 0x100099e1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x1000979d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
and dword [ebp - 0x24], 0
push 0xf01ff
push dword [edi]
push dword [ebp - 0x14]
call dword [0x10019ac4]
push 0x1000
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], eax
push ecx
push 0x1000
push eax
push dword [ebp - 0xc]
call dword [0x10019a40]
cmp dword [edi + 0xc], 1
push pe_nt_image_headers32
lea eax, [ebp - 0x228]
push 0
push eax
je 0x100097fa
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x100183f0
jmp 0x10009807
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x100183e8
lea eax, [ebp - 0x228]
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x1000983d
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x100183e0
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 3
jne 0x1000986a
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x100183d8
push eax
call ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 4
jne 0x10009897
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x100183d0
push eax
call ebx
push dword [edi]
call esi
mov ebx, eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call esi
add ebx, eax
lea eax, [ebp - 0x128]
push eax
call esi
add ebx, eax
lea eax, [ebp - 0x228]
push eax
call esi
push dword [edi + 4]
add ebx, eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebx + eax + 6]
mov ebx, dword [ebp - 0x18]
add ecx, eax
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, dword [ebp - 0xc]
jae 0x100098ee
push 0x42
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
push dword [edi + 4]
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [edi + 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
push dword [edi]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [edi]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [edi]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call esi
inc eax
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [eax + 0xc]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x128]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 0x10]
add edi, 0x24
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x10009797
push dword [ebp - 0x14]
call dword [0x10019a58]
push 0x42
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
pop esi
pop ebx
leave
ret