Function at 0x401050
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x41500c]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0xb0], 0
mov ecx, edx
mov dword [esp + 0xb4], 7
xor eax, eax
mov word [esp + 0xa0], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4010a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.004015f0
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xb0]
cmovae ecx, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
cmp eax, 5
jb 0x40115e
add eax, 0xfffffffc
mov esi, ecx
lea eax, [ecx + eax*2]
mov dword [esp + 0x18], eax
sub eax, esi
mov ecx, 0
sar eax, 1
je 0x401112
cmp word [esi], 0x2f
je 0x401110
cmp eax, 1
je 0x401112
add esi, 2
dec eax
cmp word [esi], 0x2f
jne 0x401101
mov ecx, esi
mov esi, ecx
test esi, esi
je 0x40115e
movzx ecx, word [esi]
mov edi, 0x2f
mov edx, 5
mov eax, 0x412d44
cmp ecx, edi
jb 0x40114d
mov ebx, esi
sub ebx, eax
cmp cx, di
ja 0x40114d
cmp edx, 1
je 0x401156
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edx
movzx edi, word [eax]
cmp cx, di
jae 0x401135
mov eax, dword [esp + 0x18]
add esi, 2
jmp 0x4010f0
sub esi, dword [esp + 0x14]
sar esi, 1
jmp 0x401161
or esi, 0xffffffff
push 0x20a
lea eax, [esp + 0xbc]
mov byte [esp + 0x17], 0
push 0
mov bl, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004032b0
add esp, 0xc
lea eax, [esp + 0xb8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [esp + 0x98], 0
lea ecx, [esp + 0xb8]
mov dword [esp + 0x9c], 7
mov word [esp + 0x88], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011e0
sub ecx, edx
lea eax, [esp + 0xb8]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x90]
call fcn.004015f0
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x401274
mov edx, dword [esp + 0x9c]
mov eax, edx
sub eax, ecx
cmp eax, 0xf
jb 0x40125a
cmp edx, 8
lea edi, [esp + 0x88]
push 0x1e
cmovae edi, dword [esp + 0x8c]
lea ebx, [ecx + 0xf]
push str.FanQieClean.exe
mov dword [esp + 0xa0], ebx
lea eax, [edi + ecx*2]
push eax
call fcn.00402d30
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [esp + 0x14]
jmp 0x401274
push 0xf
push ecx
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x90]
push dword [esp + 0x1c]
push 0xf
call fcn.00401740
cmp dword [esp + 0x9c], 8
lea eax, [esp + 0x88]
cmovae eax, dword [esp + 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401305
mov eax, dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp esi, 0xffffffff
je 0x4012d1
push str.GlobalFanQieCleanNotifyEvent8FDC7694_7B2F_4503_957A_C87F05AC3306
push 0
push 2
call eax
mov edi, eax
test edi, edi
je 0x4012c5
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
setne byte [esp + 0x13]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.GlobalFanQieCleanNotifyEventFD6E04F2_87AF_4E8B_BA75_C8CFB7E6DE23
push 0
push 2
call eax
mov edi, eax
test edi, edi
je 0x4012f0
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
setne byte [esp + 0x13]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor eax, eax
movzx ebx, bl
cmp byte [esp + 0x13], al
cmovne ebx, eax
mov edx, dword [esp + 0x9c]
cmp edx, 8
jb 0x401347
mov ecx, dword [esp + 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40133d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015d5
push edx
push ecx
call fcn.00401eda
add esp, 8
test bl, bl
je 0x40157e
xor eax, eax
mov dword [esp + 0x44], 0
push eax
push 0x412d08
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
call fcn.004015f0
cmp esi, 0xffffffff
mov dword [esp + 0x2c], 0
mov eax, 0x412d08
mov dword [esp + 0x30], 7
mov edx, 0x412d44
cmove edx, eax
xor eax, eax
mov ecx, edx
mov word [esp + 0x1c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4013a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004015f0
push 0xf
xor eax, eax
mov dword [esp + 0x9c], 0
push str.FanQieClean.exe
lea ecx, [esp + 0x90]
mov dword [esp + 0xa4], 7
mov word [esp + 0x90], ax
call fcn.004015f0
cmp dword [esp + 0x9c], 8
lea eax, [esp + 0x88]
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
cmovae eax, dword [esp + 0x88]
cmp dword [esp + 0x30], 8
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
cmp dword [esp + 0x48], 8
mov dword [esp + 0x60], eax
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
push eax
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x440
mov dword [esp + 0x5c], str.runas
mov dword [esp + 0x6c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x401491
push eax
call edi
mov edx, dword [esp + 0x9c]
cmp edx, 8
jb 0x4014d3
mov ecx, dword [esp + 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015da
push edx
push ecx
call fcn.00401eda
add esp, 8
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 7
mov word [esp + 0x88], ax
cmp edx, 8
jb 0x40152f
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401525
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015da
push edx
push ecx
call fcn.00401eda
add esp, 8
mov edx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
cmp edx, 8
jb 0x40157e
mov ecx, dword [esp + 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015da
push edx
push ecx
call fcn.00401eda
add esp, 8
mov eax, dword [esp + 0xb4]
cmp eax, 8
jb 0x4015bc
mov edx, dword [esp + 0xa0]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4015b2
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015df
push ecx
push edx
call fcn.00401eda
add esp, 8
mov ecx, dword [esp + 0x2cc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401acd
mov esp, ebp
pop ebp
ret 0x10
call fcn.004054c0
call fcn.004054c0
call fcn.004054c0
int3