Function at 0x10057c2
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
jbe 0x1005be8
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
shl edi, 2
lea ebx, [edi + eax]
push 0x10028e4
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10058f8
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10058f8
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1005840
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x10028dc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100585f
or dword [ebp - 0xc], 0x10
jmp 0x10058e2
push 0x10028d0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005874
or dword [ebp - 0xc], 0x20
jmp 0x10058e2
push 0x10028bc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005889
or byte [ebp - 0xb], 1
jmp 0x10058e2
push 0x10028ac
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100589e
or dword [ebp - 0xc], 1
jmp 0x10058e2
push 0x100289c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10058b3
or dword [ebp - 0xc], 2
jmp 0x10058e2
push 0x1002894
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10058c8
or dword [ebp - 0xc], 8
jmp 0x10058e2
push 0x100287c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c44
or dword [ebp - 0xc], 0x2f309a20
cmp dword [ebp - 0xc], 0
jne 0x1005bc8
mov dword [ebp - 0xc], 0x10
jmp 0x1005bc8
push 0x100286c
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10059c0
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10059c0
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x1002860
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005935
and dword [ebp - 0x10], eax
jmp 0x1005bc8
push 0x1002850
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005950
mov dword [ebp - 0x10], 1
jmp 0x1005bc8
push 0x1002844
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100596b
mov dword [ebp - 0x10], 2
jmp 0x1005bc8
push 0x1002834
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005986
mov dword [ebp - 0x10], 3
jmp 0x1005bc8
push 0x1002820
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10059a1
mov dword [ebp - 0x10], 4
jmp 0x1005bc8
push 0x100287c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c4b
mov dword [ebp - 0x10], 0xd0034911
jmp 0x1005bc8
push 0x1002810
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a6d
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005a6d
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x1002800
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a01
mov dword [ebp - 0x14], 1
jmp 0x1005bc8
push 0x10027f0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a1c
mov dword [ebp - 0x14], 2
jmp 0x1005bc8
push 0x10027cc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a37
mov dword [ebp - 0x14], 3
jmp 0x1005bc8
push 0x10027e0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a4e
and dword [ebp - 0x14], eax
jmp 0x1005bc8
push 0x100287c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c52
mov dword [ebp - 0x14], 0xd74550
jmp 0x1005bc8
push 0x10027b8
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005a93
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005a93
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x1005bc8
push 0x10027a8
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005ab9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005ab9
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x28], eax
jmp 0x1005bc8
push 0x100279c
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005af3
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005af3
mov eax, dword [ebp + 0x10]
push 0x1002794
push dword [edi + eax + 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005bc8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], eax
jmp 0x1005bc8
push 0x1002748
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005b19
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005b19
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x1005bc8
push 0x1002784
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005b7c
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005b7c
mov eax, dword [ebp + 0x10]
mov edi, dword [edi + eax + 4]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x1005c65
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
jmp 0x1005b75
cmp word [ebx], 0x2f
jne 0x1005b73
mov word [ebx], ax
inc ebx
inc ebx
cmp word [ebx], ax
jne 0x1005b6a
jmp 0x1005bc8
push 0x1002778
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005b9f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005b9f
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x1005bc8
push 0x1002764
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c85
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005c85
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x18], eax
inc dword [ebp - 8]
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jb 0x100580b
xor edi, edi
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1005bef
mov dword [ebp - 0xc], 0x10
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0xf01ff
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, edi
jne 0x1005c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.010046fc
push eax
push edi
push 0x1002ab8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1005c98
push 0x1002730
jmp 0x1005c57
push 0x1002718
jmp 0x1005c57
push 0x1002700
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
call fcn.01004d8f
jmp 0x1005c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010046fc
push eax
push esi
push 0x10026c8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1005c9f
call fcn.01004dbb
jmp 0x1005c9f
push 0x1002a9c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10