Function at 0x401220
Capabilities:
Set current directory
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2c8
mov eax, dword [0x44301c]
xor eax, esp
mov dword [esp + 0x2c4], eax
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov ecx, edx
movaps xmmword [esp + 0x5c], xmm0
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x70], 0
lea esi, [ecx + 1]
mov dword [esp + 0x74], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401263
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x68]
call fcn.00403dd0
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4014cb
cmp dword [esp + 0x74], 0x10
lea eax, [esp + 0x60]
lea edi, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
lea esi, [esp + 0x60]
cmovae edi, dword [esp + 0x60]
add eax, ecx
cmp dword [esp + 0x74], 0x10
mov dword [esp + 8], eax
cmovae esi, dword [esp + 0x60]
cmp esi, eax
je 0x4012ce
sub edi, esi
movsx eax, byte [esi]
push eax
call fcn.0041cee0
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [esp + 8]
jne 0x4012b4
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x60]
mov esi, dword [esp + 0x60]
cmp eax, 0x10
cmovae edx, esi
cmp ecx, 0xe
jne 0x4013b5
mov edi, ecx
mov esi, str.systemrunstart
sub edi, 4
jb 0x401306
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40130b
add edx, 4
add esi, 4
sub edi, 4
jae 0x4012f5
cmp edi, 0xfffffffc
je 0x40133f
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401338
cmp edi, 0xfffffffd
je 0x40133f
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401338
cmp edi, 0xfffffffe
je 0x40133f
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401338
cmp edi, 0xffffffff
je 0x40133f
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40133f
sbb eax, eax
or eax, 1
jmp 0x401341
xor eax, eax
test eax, eax
jne 0x4013ad
push 1
push eax
push eax
mov edx, str.MyDockFinder
xor ecx, ecx
call fcn.00405500
add esp, 0xc
call fcn.004025c0
test eax, eax
je 0x4013a3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4013a3
push 0x10
push str.MyDock
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40139c
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
jmp 0x401763
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x60]
cmp eax, 0x10
lea edx, [esp + 0x60]
cmovae edx, esi
cmp ecx, 0x13
jne 0x401439
mov edi, ecx
mov esi, str.systemrunstartplane
sub edi, 4
jb 0x4013e1
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4013e6
add edx, 4
add esi, 4
sub edi, 4
jae 0x4013d0
cmp edi, 0xfffffffc
je 0x40141a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401413
cmp edi, 0xfffffffd
je 0x40141a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401413
cmp edi, 0xfffffffe
je 0x40141a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401413
cmp edi, 0xffffffff
je 0x40141a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40141a
sbb eax, eax
or eax, 1
jmp 0x40141c
xor eax, eax
test eax, eax
jne 0x401435
xor cl, cl
call fcn.00402400
mov cl, 1
call fcn.00402400
mov esi, eax
jmp 0x401763
mov eax, dword [esp + 0x74]
cmp eax, 0x10
lea edx, [esp + 0x60]
cmovae edx, dword [esp + 0x60]
cmp ecx, 0xe
jne 0x4014c7
mov esi, str.systemdelstart
sub ecx, 4
jb 0x401469
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40146e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x401458
cmp ecx, 0xfffffffc
je 0x4014a2
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40149b
cmp ecx, 0xfffffffd
je 0x4014a2
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40149b
cmp ecx, 0xfffffffe
je 0x4014a2
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40149b
cmp ecx, 0xffffffff
je 0x4014a2
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4014a2
sbb eax, eax
or eax, 1
jmp 0x4014a4
xor eax, eax
test eax, eax
jne 0x4014c7
push 1
push eax
push eax
mov edx, str.MyDockFinder
xor ecx, ecx
call fcn.00405500
add esp, 0xc
call fcn.00402730
mov esi, eax
jmp 0x401763
mov edi, dword [esp + 0xc]
push 0x7f00
push 0
mov dword [esp + 0xa8], 0x6f0064
mov dword [esp + 0xac], 0x6b0063
mov dword [esp + 0xb0], 0x6f006d
mov dword [esp + 0xb4], 0x330064
mov dword [esp + 0xb8], 0x32
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x402d30
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x208
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.004196a0
add esp, 0xc
mov dword [esp + 8], 0x104
lea eax, [esp + 8]
push eax
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x80]
call fcn.004051c0
mov edx, dword [esp + 0x94]
lea ecx, [esp + 0x80]
mov esi, dword [esp + 0x80]
cmp edx, 8
mov eax, dword [esp + 0x90]
cmovae ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40160e
push 1
push 0x43dba4
lea ecx, [esp + 0x88]
call fcn.00403c00
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x80]
cmp edx, 8
lea eax, [esp + 0x80]
cmovae eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movups xmm2, xmmword [0x443a68]
lea ecx, [esp + 0x80]
movq xmm1, qword [0x443a78]
movups xmm0, xmmword [esp + 0x80]
movd eax, xmm2
movq qword [esp + 0xb0], xmm1
cmp dword [esp + 0xb4], 8
movups xmmword [0x443a68], xmm0
cmovae ecx, eax
xor eax, eax
movq xmm0, qword [esp + 0x90]
movq qword [esp + 0x90], xmm1
movq qword [0x443a78], xmm0
movaps xmmword [esp + 0x80], xmm2
mov dword [esp + 0x90], 0
mov word [ecx], ax
mov ecx, dword [esp + 0x94]
cmp ecx, 8
jb 0x4016d3
mov edx, dword [esp + 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017ad
push ecx
push edx
call fcn.00417ad7
add esp, 8
mov ecx, edi
call fcn.004027c0
test eax, eax
jne 0x4016e5
xor esi, esi
jmp 0x401763
push 0
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
xorps xmm0, xmm0
push 0
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
call esi
test eax, eax
je 0x40175f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40174e
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x401725
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x401795
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40178b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b2
push ecx
push edx
call fcn.00417ad7
add esp, 8
mov ecx, dword [esp + 0x2cc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00417848
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041d4bc
call fcn.0041d4bc
int3