Function at 0x10009d74
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
and byte [ebp - 0x234], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
and byte [ebp - 0x134], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf003f
push esi
push esi
mov dword [ebp - 0xc], eax
call dword [0x1001be10]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x10009def
push str.OpenSCManager_Error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 0x10000
push ebx
push 0x40
call dword [ebp - 0xc]
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
push 3
push 0x30
push dword [ebp - 0x18]
call dword [0x1001bd90]
push 0x104
push 0x40
call dword [ebp - 0xc]
mov ebx, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
mov byte [ebx], 0x82
cmp dword [ebp - 0x1c], esi
jbe 0x1000a0c7
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x24], 0
push 0xf01ff
push dword [edi]
push dword [ebp - 0x18]
call dword [0x1001be14]
push 0x1000
push 0x40
mov dword [ebp - 8], eax
call dword [ebp - 0xc]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push 0x1000
push ebx
mov dword [ebp - 0x14], ebx
push dword [ebp - 8]
call dword [0x1001bd94]
push str.lstrcatA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [edi + 0xc], 1
mov dword [ebp - 8], eax
push 0x100
lea eax, [ebp - 0x234]
push 0
push eax
je 0x10009eb8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10019f38
jmp 0x10009ec5
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10019f30
lea eax, [ebp - 0x234]
push eax
call dword [ebp - 8]
cmp dword [ebx + 4], 2
jne 0x10009efa
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x10019f28
push eax
call dword [ebp - 8]
cmp dword [ebx + 4], 3
jne 0x10009f25
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x10019f20
push eax
call dword [ebp - 8]
cmp dword [ebx + 4], 4
jne 0x10009f50
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x10019f18
push eax
call dword [ebp - 8]
push dword [edi + 4]
call esi
push dword [ebx + 0xc]
mov edx, eax
mov ebx, edx
call esi
add ebx, eax
lea eax, [ebp - 0x134]
push eax
call esi
add ebx, eax
lea eax, [ebp - 0x234]
push eax
call esi
push dword [edi]
add ebx, eax
call esi
push str.LocalSize
push str.KERNEL32.dll
lea ebx, [ebx + eax + 6]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LocalReAlloc
push str.KERNEL32.dll
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, ebx
mov ebx, dword [ebp - 0x20]
push ebx
mov dword [ebp - 8], eax
call dword [ebp - 0x28]
cmp eax, dword [ebp - 8]
jae 0x10009fd4
push 0x42
push dword [ebp - 8]
push ebx
call dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x20], 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 - 0x14]
push dword [eax + 0xc]
call esi
inc eax
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
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 - 0x234]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x134]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x134]
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 0x10009e42
push dword [ebp - 0x18]
call dword [0x1001be24]
push str.LocalReAlloc
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42
push dword [ebp - 4]
push ebx
call eax
pop edi
pop esi
pop ebx
leave
ret