Function at 0x402f20
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b13a
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5ab3e8]
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
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x26c], 0
call fcn.00402b20
cmp dword [ebp - 0x254], 0
mov dword [ebp - 4], 0
jne 0x402f8e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x264]
call fcn.00404570
call fcn.00410800
test al, al
je 0x402fea
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00404680
cmp eax, 0xffffffff
je 0x402fea
push 0
push 0x5695ec
lea ecx, [ebp - 0x264]
call fcn.00404680
cmp eax, 0xffffffff
jne 0x402fea
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00404680
push 0xd
push str._qingbangong
push eax
lea ecx, [ebp - 0x264]
call fcn.00404740
mov ecx, dword [ebx]
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004069c0
test eax, eax
je 0x403560
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048deb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403095
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
push eax
call fcn.00404570
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x26c], 1
call fcn.00413030
add esp, 8
mov byte [ebp - 0x265], 1
test eax, eax
je 0x40309c
mov byte [ebp - 0x265], 0
test byte [ebp - 0x26c], 1
mov dword [ebp - 4], 0
je 0x4030ec
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4030ec
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035bf
push edx
push ecx
call fcn.0048b6db
add esp, 8
cmp byte [ebp - 0x265], 0
jne 0x403560
mov ecx, ebx
call fcn.004041c0
mov ecx, dword [ebx]
call fcn.004039c0
cmp eax, 7
jne 0x403197
call fcn.00411420
xor ecx, ecx
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 7
call fcn.00404570
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
call fcn.00412770
mov edx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40319e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40318b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c4
push edx
push ecx
call fcn.0048b6db
add esp, 8
jmp 0x40319e
mov ecx, dword [ebx]
call fcn.004039c0
mov ecx, dword [ebx]
call fcn.004039c0
dec eax
cmp eax, 7
ja case.default.0x4031af
jmp dword [eax*4 + 0x4035d4]
push str.LanguageID
lea ecx, [ebp - 0x248]
call fcn.00402410
mov ecx, dword [ebx]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
call fcn.00406300
mov ecx, dword [ebx + 8]
push eax
mov byte [ebp - 4], 4
call fcn.0043aac0
lea ecx, [ebp - 0x230]
call fcn.004025b0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.004025b0
push str.UpPower
lea ecx, [ebp - 0x248]
call fcn.00402410
mov ecx, dword [ebx]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call fcn.004063e0
mov ecx, dword [ebx + 8]
push eax
call fcn.00439db0
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.004025b0
jmp 0x403563
mov ecx, dword [ebx + 8]
call fcn.0043ad50
mov esi, eax
jmp 0x403563
mov ecx, dword [ebx + 8]
call fcn.0043a6f0
mov esi, eax
jmp 0x403563
mov ecx, dword [ebx + 8]
call fcn.00439660
mov esi, eax
jmp 0x403563
mov ecx, ebx
call fcn.00403600
mov esi, eax
jmp 0x403563
lea eax, [ebp - 0x228]
mov dword [ebx + 4], 1
push eax
mov dword [ebp - 0x228], str.wpscloudsvr
mov dword [ebp - 0x224], 0x403d20
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x4032c5
xor esi, esi
jmp 0x403563
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 7
jmp 0x403563
mov ecx, dword [ebx + 8]
call fcn.0043ae70
mov esi, eax
jmp 0x403563
lea ecx, [ebp - 0x265]
call fcn.0043b780
lea ecx, [ebp - 0x265]
call fcn.00408c40
cmp byte [ebx + 0x20], 0
je 0x40331e
call fcn.0043ba90
lea ecx, [ebp - 0x265]
call fcn.0043b750
lea ecx, [ebp - 0x265]
call fcn.00408c40
push str.TD_WPS_EXEC_HOST
lea ecx, [ebp - 0x248]
mov dword [ebx + 4], 2
call fcn.00402410
mov ecx, dword [ebx]
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 6
call fcn.00405920
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 7
cmp esi, eax
je 0x4033bb
jmp 0x403360
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x40336a
mov edi, dword [esi]
cmp dword [esi + 0x10], 0xb
jne 0x403458
mov ecx, str._triggerdot
mov edx, 0xb
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x403452
add ecx, 2
sub edx, 1
jne 0x403380
cmp esi, dword [ebp - 0x220]
je 0x4033bb
mov edx, dword [ebx + 0x28]
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae ecx, dword [ebp - 0x248]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x40]
lea ecx, [ebp - 0x224]
call fcn.00402610
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.004025b0
xor eax, eax
mov dword [ebp - 0x220], 0
push 0x569670
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00404570
mov ecx, dword [ebx]
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 8
call fcn.004063e0
mov edx, dword [ebp - 0x21c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x403472
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c9
jmp 0x403468
mov eax, dword [ebp - 0x220]
add esi, 0x18
cmp esi, eax
jne 0x403360
jmp 0x4033bb
push edx
push ecx
call fcn.0048b6db
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov eax, dword [ebx]
mov dword [ebp - 0x21c], 7
push eax
test esi, esi
je 0x4034a5
mov ecx, dword [ebx + 0x10]
call fcn.0040a5c0
mov esi, eax
jmp 0x403563
mov ecx, dword [ebx + 0xc]
call fcn.00409c20
mov esi, eax
test si, si
jne 0x403563
mov ecx, dword [ebx + 0xc]
call fcn.004097d0
test eax, eax
jne 0x4034d0
mov ecx, dword [ebx + 0xc]
call fcn.004097e0
test eax, eax
je 0x4034e0
mov ecx, dword [ebx + 8]
call fcn.0043ab40
mov ecx, dword [ebx + 0x14]
call fcn.004367a0
mov ecx, ebx
call fcn.00403aa0
mov esi, eax
test esi, esi
jne 0x403547
cmp dword [ebx + 4], 1
jne 0x40353f
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push eax
push eax
push eax
lea eax, [ebp - 0x24c]
push eax
call edi
test eax, eax
jle 0x403547
lea esp, [esp]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
call edi
test eax, eax
jg 0x403510
jmp 0x403547
mov ecx, dword [ebx + 0xc]
call fcn.0040c0d0
mov ecx, dword [ebx + 0x14]
call fcn.00436970
mov ecx, dword [ebx + 0x18]
call fcn.00437d70
jmp 0x403563
mov esi, 1
jmp 0x403563
or esi, 0xffffffff
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x40359f
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403595
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035ce
push edx
push ecx
call fcn.0048b6db
add esp, 8
mov eax, esi
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.0048b6e9
mov esp, ebp
pop ebp
ret 8
call fcn.00497009
call fcn.00497009
call fcn.00497009
call fcn.00497009
nop
jle 0x403608
inc eax
add byte [esi + 0x43004031], dh
xor al, byte [eax]
push edx
xor al, byte [eax]
popal
xor al, byte [eax]
jo 0x40361c
inc eax
add bh, ah
xor al, byte [eax]
fdiv dword [edx]
inc eax
add ah, cl
int3
push ebp
add byte [ecx], ah
add byte [eax], al
add byte [eax - 0x7f], dl
in al, dx
add byte [edx], 0
add byte [ecx + 0x5ab3e8], ah