Function at 0x12183b40
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
cmp dword [ebp + 0xc], 0
je 0x12183b60
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x60], eax
jmp 0x12183b67
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
shl edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x12183b9c
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x64], eax
jmp 0x12183ba3
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x24], 0
je 0x12183bd8
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x68], eax
jmp 0x12183bdf
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x50], eax
cmp dword [ebp + 0x28], 0
je 0x12183c14
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x6c], eax
jmp 0x12183c1b
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x30], 0
je 0x12183c50
mov ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x70], eax
jmp 0x12183c57
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
shl eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x34], 0
je 0x12183c8c
mov edx, dword [ebp + 0x34]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x74], eax
jmp 0x12183c93
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
shl ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x38], 0
je 0x12183cc8
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x78], eax
jmp 0x12183ccf
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
shl edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x24]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x28]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x30]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x34]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
push 0
push 0
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0x38]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x28]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x34]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x3c]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x38]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0x34