Function at 0x121837f0
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [ebp + 0x18], 0
je 0x12183810
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x12183817
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
shl edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
je 0x1218384c
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x58], eax
jmp 0x12183853
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x24], 0
je 0x12183888
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x5c], eax
jmp 0x1218388f
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0x28], 0
je 0x121838c4
mov eax, dword [ebp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x60], eax
jmp 0x121838cb
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
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 - 0xc], eax
cmp dword [ebp + 0x2c], 0
je 0x12183900
mov ecx, dword [ebp + 0x2c]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x64], eax
jmp 0x12183907
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
shl eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x30], 0
je 0x1218393c
mov edx, dword [ebp + 0x30]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x68], eax
jmp 0x12183943
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
shl ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x34], eax
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x18]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x24]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x28]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x2c]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x30]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 0x18]
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 - 0x18], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x28]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x30]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 0x2c