Function at 0x401220
Capabilities:
Set current directory
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2d8
mov eax, dword [0x446018]
xor eax, esp
mov dword [esp + 0x2d4], eax
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov ecx, edx
movaps xmmword [esp + 0x6c], xmm0
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x80], 0
lea esi, [ecx + 1]
mov dword [esp + 0x84], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401270
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.004030c0
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x4014f3
cmp dword [esp + 0x84], 0x10
lea eax, [esp + 0x70]
lea edi, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
lea esi, [esp + 0x70]
cmovae edi, dword [esp + 0x70]
add eax, ecx
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0x14], eax
cmovae esi, dword [esp + 0x70]
cmp esi, eax
je 0x4012ed
sub edi, esi
nop word [eax + eax]
movsx eax, byte [esi]
push eax
call fcn.0041b530
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [esp + 0x14]
jne 0x4012d0
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x70]
mov esi, dword [esp + 0x70]
cmp eax, 0x10
cmovae edx, esi
cmp ecx, 0xe
jne 0x4013da
mov edi, ecx
mov esi, str.systemrunstart
sub edi, 4
jb 0x401328
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40132d
add edx, 4
add esi, 4
sub edi, 4
jae 0x401317
cmp edi, 0xfffffffc
je 0x401361
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40135a
cmp edi, 0xfffffffd
je 0x401361
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40135a
cmp edi, 0xfffffffe
je 0x401361
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40135a
cmp edi, 0xffffffff
je 0x401361
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x401361
sbb eax, eax
or eax, 1
jmp 0x401363
xor eax, eax
test eax, eax
jne 0x4013cf
push 1
push eax
push eax
mov edx, str.MyDockFinder
xor ecx, ecx
call fcn.00404700
add esp, 0xc
call fcn.004022a0
test eax, eax
je 0x4013c5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4013c5
push 0x10
push str.MyDock
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4013be
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 0x4017ac
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x70]
cmp eax, 0x10
lea edx, [esp + 0x70]
cmovae edx, esi
cmp ecx, 0x13
jne 0x401461
mov edi, ecx
mov esi, str.systemrunstartplane
sub edi, 4
jb 0x401406
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40140b
add edx, 4
add esi, 4
sub edi, 4
jae 0x4013f5
cmp edi, 0xfffffffc
je 0x40143f
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401438
cmp edi, 0xfffffffd
je 0x40143f
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401438
cmp edi, 0xfffffffe
je 0x40143f
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401438
cmp edi, 0xffffffff
je 0x40143f
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40143f
sbb eax, eax
or eax, 1
jmp 0x401441
xor eax, eax
test eax, eax
jne 0x40145a
xor cl, cl
call fcn.004020b0
mov cl, 1
call fcn.004020b0
mov esi, eax
jmp 0x4017ac
mov eax, dword [esp + 0x84]
cmp eax, 0x10
lea edx, [esp + 0x70]
cmovae edx, dword [esp + 0x70]
cmp ecx, 0xe
jne 0x4014ef
mov esi, str.systemdelstart
sub ecx, 4
jb 0x401491
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x401496
add edx, 4
add esi, 4
sub ecx, 4
jae 0x401480
cmp ecx, 0xfffffffc
je 0x4014ca
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4014c3
cmp ecx, 0xfffffffd
je 0x4014ca
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4014c3
cmp ecx, 0xfffffffe
je 0x4014ca
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4014c3
cmp ecx, 0xffffffff
je 0x4014ca
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4014ca
sbb eax, eax
or eax, 1
jmp 0x4014cc
xor eax, eax
test eax, eax
jne 0x4014ef
push 1
push eax
push eax
mov edx, str.MyDockFinder
xor ecx, ecx
call fcn.00404700
add esp, 0xc
call fcn.00402410
mov esi, eax
jmp 0x4017ac
mov edi, dword [esp + 0x18]
push 0x7f00
push 0
mov dword [esp + 0xb8], 0x6f0064
mov dword [esp + 0xbc], 0x6b0063
mov dword [esp + 0xc0], 0x6f006d
mov dword [esp + 0xc4], 0x330064
mov dword [esp + 0xc8], 0x32
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x4027a0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x208
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.00418440
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xd4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x90]
call fcn.004044d0
mov edx, dword [esp + 0xa4]
lea ecx, [esp + 0x90]
mov esi, dword [esp + 0x90]
cmp edx, 8
mov eax, dword [esp + 0xa0]
cmovae ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x401636
push 1
push 0x440484
lea ecx, [esp + 0x98]
call fcn.00403050
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x90]
cmp edx, 8
lea eax, [esp + 0x90]
cmovae eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movups xmm2, xmmword [0x446a88]
lea ecx, [esp + 0x90]
movq xmm1, qword [0x446a98]
movups xmm0, xmmword [esp + 0x90]
movd eax, xmm2
movq qword [esp + 0xc0], xmm1
cmp dword [esp + 0xc4], 8
movups xmmword [0x446a88], xmm0
cmovae ecx, eax
xor eax, eax
movq xmm0, qword [esp + 0xa0]
movq qword [esp + 0xa0], xmm1
movq qword [0x446a98], xmm0
movaps xmmword [esp + 0x90], xmm2
mov dword [esp + 0xa0], 0
mov word [ecx], ax
mov ecx, edi
call fcn.004024a0
test eax, eax
jne 0x4016cb
xor esi, esi
jmp 0x40174e
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 + 0x1c], eax
lea eax, [esp + 0x28]
push 0
push eax
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
call esi
test eax, eax
je 0x40174a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401739
lea eax, [esp + 0x20]
push eax
call edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x401710
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0xa4]
cmp ecx, 8
jb 0x40178c
mov edx, dword [esp + 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401782
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017f9
push ecx
push edx
call fcn.00416977
add esp, 8
xor eax, eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 7
mov word [esp + 0x90], ax
mov ecx, dword [esp + 0x84]
cmp ecx, 0x10
jb 0x4017e1
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017f9
push ecx
push edx
call fcn.00416977
add esp, 8
mov ecx, dword [esp + 0x2dc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004166e8
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041b8b8
int3