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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49021a
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4be434]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x26c], 0
call fcn.00402080
cmp dword [ebp - 0x254], 0
mov dword [ebp - 4], 0
jne 0x4024ee
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x264]
call fcn.00403d90
call fcn.00477fc0
test al, al
je 0x40254a
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00403ea0
cmp eax, 0xffffffff
je 0x40254a
push 0
push 0x49c6cc
lea ecx, [ebp - 0x264]
call fcn.00403ea0
cmp eax, 0xffffffff
jne 0x40254a
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00403ea0
push 0xd
push str._qingbangong
push eax
lea ecx, [ebp - 0x264]
call fcn.00403f60
mov ecx, dword [edi]
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004060d0
test eax, eax
jne 0x402565
or esi, 0xffffffff
jmp 0x402bbe
mov ecx, edi
call fcn.00403930
mov ecx, dword [edi]
call fcn.00403000
cmp eax, 7
jne 0x402605
call fcn.0040fd40
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.00403d90
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
call fcn.00410f30
mov edx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40260c
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4025f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
jmp 0x40260c
mov ecx, dword [edi]
call fcn.00403000
mov ecx, dword [edi]
call fcn.00403000
test eax, eax
je case.default.0x40271d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x4026ac
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.00403d90
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push 0
push eax
mov dword [ebp - 0x26c], 1
call fcn.00411820
add esp, 8
test eax, eax
jne 0x4026ac
mov bl, 1
jmp 0x4026ae
xor bl, bl
test byte [ebp - 0x26c], 1
mov dword [ebp - 4], 0
je 0x402700
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x402700
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4026f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026f6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
test bl, bl
je 0x40270c
or esi, 0xffffffff
jmp 0x402bbe
mov ecx, dword [edi]
call fcn.00403000
dec eax
cmp eax, 7
ja case.default.0x40271d
jmp dword [eax*4 + 0x402c20]
push str.LanguageID
lea ecx, [ebp - 0x248]
call fcn.00401a00
mov ecx, dword [edi]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
call fcn.004059e0
mov ecx, dword [edi + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00439fa0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40279a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402790
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027ec
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x4027fc
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4027f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4027f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
push str.UpPower
lea ecx, [ebp - 0x248]
call fcn.00401a00
mov ecx, dword [edi]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call fcn.00405b20
mov ecx, dword [edi + 8]
push eax
call fcn.00439370
mov edx, dword [ebp - 0x234]
mov esi, eax
cmp edx, 8
jb 0x402bbe
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402865
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402865
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
jmp 0x402bbe
mov ecx, dword [edi + 8]
call fcn.0043a230
mov esi, eax
jmp 0x402bbe
mov ecx, dword [edi + 8]
call fcn.00439ce0
mov esi, eax
jmp 0x402bbe
mov ecx, dword [edi + 8]
call fcn.00438dd0
mov esi, eax
jmp 0x402bbe
mov ecx, edi
call fcn.00402c40
mov esi, eax
jmp 0x402bbe
lea eax, [ebp - 0x228]
mov dword [edi + 4], 1
push eax
mov dword [ebp - 0x228], str.wpscloudsvr
mov dword [ebp - 0x224], 0x403360
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x4028f6
xor esi, esi
jmp 0x402bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 7
jmp 0x402bbe
mov ecx, dword [edi + 8]
call fcn.0043a340
mov esi, eax
jmp 0x402bbe
lea ecx, [ebp - 0x265]
call fcn.0043ac60
lea ecx, [ebp - 0x265]
call fcn.00407cf0
cmp byte [edi + 0x20], 0
je 0x40294f
call fcn.0043b070
lea ecx, [ebp - 0x265]
call fcn.0043ac30
lea ecx, [ebp - 0x265]
call fcn.00407cf0
push str.TD_WPS_EXEC_HOST
lea ecx, [ebp - 0x248]
mov dword [edi + 4], 2
call fcn.00401a00
mov ecx, dword [edi]
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 6
call fcn.00405010
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 7
cmp esi, eax
je 0x4029e7
lea esp, [esp]
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x40299a
mov ebx, dword [esi]
cmp dword [esi + 0x10], 0xb
jne 0x402a34
mov ecx, str._triggerdot
mov edx, 0xb
sub ebx, ecx
mov ax, word [ecx + ebx]
cmp ax, word [ecx]
jne 0x402a2e
add ecx, 2
sub edx, 1
jne 0x4029b0
cmp esi, dword [ebp - 0x220]
je 0x4029e7
mov edx, dword [edi + 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.00401bb0
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x402a4b
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402a41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402a41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x220]
add esi, 0x18
cmp esi, eax
jne 0x402990
jmp 0x4029e7
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
push 0x49c750
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403d90
mov ecx, dword [edi]
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 8
call fcn.00405b20
mov edx, dword [ebp - 0x21c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x402ad2
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ac8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov eax, dword [edi]
mov dword [ebp - 0x21c], 7
push eax
test esi, esi
je 0x402b05
mov ecx, dword [edi + 0x10]
call fcn.00409c20
mov esi, eax
jmp 0x402bbe
mov ecx, dword [edi + 0xc]
call fcn.00408e20
mov esi, eax
test si, si
jne 0x402bbe
mov ecx, dword [edi + 0xc]
call fcn.00408900
test eax, eax
jne 0x402b30
mov ecx, dword [edi + 0xc]
call fcn.00408910
test eax, eax
je 0x402b40
mov ecx, dword [edi + 8]
call fcn.0043a020
mov ecx, dword [edi + 0x14]
call fcn.00448d70
mov ecx, edi
call fcn.004030e0
mov esi, eax
test esi, esi
jne 0x402ba7
cmp dword [edi + 4], 1
jne 0x402b9f
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push eax
push eax
push eax
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
jle 0x402ba7
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 ebx
test eax, eax
jg 0x402b70
jmp 0x402ba7
mov ecx, dword [edi + 0xc]
call fcn.0040b8f0
mov ecx, dword [edi + 0x14]
call fcn.00449590
mov ecx, dword [edi + 0x18]
call fcn.0044b4f0
jmp 0x402bbe
mov esi, 1
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x402c00
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402bf6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
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.00487702
mov esp, ebp
pop ebp
ret 8