Function at 0x4200d0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446742
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x45f91c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4203e6
push 0x21c
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00422c00
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0x10e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4203e6
lea ecx, [ebp - 0x22c]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x420150
mov eax, dword [str.__service]
mov dword [ecx], eax
mov eax, dword [0x44e784]
mov dword [ecx + 4], eax
mov eax, dword [0x44e788]
mov dword [ecx + 8], eax
mov eax, dword [0x44e78c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x44e790]
mov dword [ecx + 0x10], eax
mov ecx, str.d2cs_service
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0xf
mov byte [ebp - 0x274], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4201a6
sub ecx, edx
push ecx
push str.d2cs_service
lea ecx, [ebp - 0x274]
call fcn.0040c330
mov ecx, str.d2cs
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4201f0
sub ecx, edx
push ecx
push str.d2cs
lea ecx, [ebp - 0x25c]
call fcn.0040c330
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2bd]
call fcn.0041fc70
mov esi, eax
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2bd]
call fcn.0041fc70
cmp dword [esi + 0x14], 8
jb 0x42024e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x420256
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 2
push 0x10
push 0xf01ff
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [ebp - 0x2a4]
mov edi, eax
call fcn.0041fc00
lea ecx, [ebp - 0x2bc]
call fcn.0041fc00
lea ecx, [ebp - 0x25c]
call fcn.00414fb0
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
call fcn.00414fb0
test edi, edi
je 0x4203e6
mov ecx, str.Diablo_2_Character_Server
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0xf
mov byte [ebp - 0x28c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4202e5
sub ecx, edx
push ecx
push str.Diablo_2_Character_Server
lea ecx, [ebp - 0x28c]
call fcn.0040c330
lea eax, [ebp - 0x28c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2bd]
call fcn.0041fc70
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 5
call fcn.00414fb0
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x244]
mov eax, dword [ebp - 0x234]
cmovae ecx, dword [ebp - 0x244]
push dword [ebp - 0x2c4]
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x2c8], 0
lea ecx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
push eax
push ecx
lea ecx, [ebp - 0x2d0]
call fcn.0041fa70
mov eax, dword [ebp - 0x2d0]
push str.advapi32.dll
mov byte [ebp - 4], 6
mov dword [ebp - 0x2c4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4203c4
push str.ChangeServiceConfig2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4203c4
lea ecx, [ebp - 0x2c4]
push ecx
push 1
push edi
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
lea ecx, [ebp - 0x2d0]
call fcn.00420540
lea ecx, [ebp - 0x244]
call fcn.0041fc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret