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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acf4a
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4e437c]
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]
xor ebx, ebx
push eax
mov dword [ebp - 0x26c], ebx
call fcn.00401960
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x254], ebx
jne 0x403a47
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x264]
call fcn.00405010
call fcn.004620c0
test al, al
je 0x403aa3
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00405120
cmp eax, 0xffffffff
je 0x403aa3
push 0
push 0x4b765c
lea ecx, [ebp - 0x264]
call fcn.00405120
cmp eax, 0xffffffff
jne 0x403aa3
push 0
push str.ksoqing:
lea ecx, [ebp - 0x264]
call fcn.00405120
push 0xd
push str._qingbangong
push eax
lea ecx, [ebp - 0x264]
call fcn.004051e0
mov ecx, dword [edi]
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.00408670
test eax, eax
jne 0x403abe
or esi, 0xffffffff
jmp 0x40402e
mov ecx, edi
call fcn.00404c80
mov ecx, dword [edi]
call fcn.00404480
cmp eax, 7
jne 0x403b5c
call fcn.0041d030
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.00405010
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
call fcn.0041e250
mov edx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x403b63
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40408a
push edx
push ecx
call fcn.0046e36f
add esp, 8
jmp 0x403b63
mov ecx, dword [edi]
call fcn.00404480
mov ecx, dword [edi]
call fcn.00404480
test eax, eax
je case.default.0x403c7b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00486380
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 0x403c06
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.00405010
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push 0
mov ebx, 1
push eax
mov dword [ebp - 0x26c], ebx
call fcn.0041e7c0
add esp, 8
mov byte [ebp - 0x265], bl
test eax, eax
je 0x403c0d
mov byte [ebp - 0x265], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x403c59
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x403c59
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403c4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40408f
push edx
push ecx
call fcn.0046e36f
add esp, 8
cmp byte [ebp - 0x265], 0
je 0x403c6a
or esi, 0xffffffff
jmp 0x40402e
mov ecx, dword [edi]
call fcn.00404480
dec eax
cmp eax, 7
ja case.default.0x403c7b
jmp dword [eax*4 + 0x4040a0]
push str.LanguageID
lea ecx, [ebp - 0x248]
call fcn.00403570
mov ecx, dword [edi]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
call fcn.00407fb0
mov ecx, dword [edi + 8]
push eax
mov byte [ebp - 4], 4
call fcn.004160a0
lea ecx, [ebp - 0x230]
call fcn.00402420
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.00402420
push str.UpPower
lea ecx, [ebp - 0x248]
call fcn.00403570
mov ecx, dword [edi]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call fcn.00408090
mov ecx, dword [edi + 8]
push eax
call fcn.00415440
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00402420
jmp 0x40402e
mov ecx, dword [edi + 8]
call fcn.00416330
mov esi, eax
jmp 0x40402e
mov ecx, dword [edi + 8]
call fcn.00415dd0
mov esi, eax
jmp 0x40402e
mov ecx, dword [edi + 8]
call fcn.00414ea0
mov esi, eax
jmp 0x40402e
mov ecx, edi
call 0x4040c0
mov esi, eax
jmp 0x40402e
lea eax, [ebp - 0x228]
mov dword [edi + 4], 1
push eax
mov dword [ebp - 0x228], 0x4b7630
mov dword [ebp - 0x224], 0x4047e0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x403d91
xor esi, esi
jmp 0x40402e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 7
jmp 0x40402e
mov ecx, dword [edi + 8]
call fcn.00416440
mov esi, eax
jmp 0x40402e
lea ecx, [ebp - 0x265]
call fcn.00423300
lea ecx, [ebp - 0x265]
call fcn.0040a050
cmp byte [edi + 0x20], 0
je 0x403dea
call fcn.00423950
lea ecx, [ebp - 0x265]
call fcn.004232d0
lea ecx, [ebp - 0x265]
call fcn.0040a050
push str.TD_WPS_EXEC_HOST
lea ecx, [ebp - 0x248]
mov dword [edi + 4], 2
call fcn.00403570
mov ecx, dword [edi]
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 6
call fcn.004075d0
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 7
cmp esi, eax
je 0x403e8b
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x403e31
mov ebx, dword [esi]
cmp dword [esi + 0x10], 0xb
jne 0x403f28
mov ecx, str._triggerdot
mov edx, 0xb
sub ebx, ecx
jmp 0x403e50
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x403f22
add ecx, 2
sub edx, 1
jne 0x403e50
cmp esi, dword [ebp - 0x220]
je 0x403e8b
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.004038a0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.00402420
xor eax, eax
mov dword [ebp - 0x220], 0
push 0x4b76e0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00405010
mov ecx, dword [edi]
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 8
call fcn.00408090
mov edx, dword [ebp - 0x21c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x403f42
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404094
jmp 0x403f38
mov eax, dword [ebp - 0x220]
add esi, 0x18
cmp esi, eax
jne 0x403e27
jmp 0x403e8b
push edx
push ecx
call fcn.0046e36f
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 0x403f75
mov ecx, dword [edi + 0x10]
call fcn.0040c330
mov esi, eax
jmp 0x40402e
mov ecx, dword [edi + 0xc]
call fcn.0040b9b0
mov esi, eax
test si, si
jne 0x40402e
mov ecx, dword [edi + 0xc]
call fcn.0040b540
test eax, eax
jne 0x403fa0
mov ecx, dword [edi + 0xc]
call fcn.00405fe0
test eax, eax
je 0x403fb0
mov ecx, dword [edi + 8]
call fcn.00416120
mov ecx, dword [edi + 0x14]
call fcn.00411330
mov ecx, edi
call fcn.00404560
mov esi, eax
test esi, esi
jne 0x404017
cmp dword [edi + 4], 1
jne 0x40400f
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push eax
push eax
push eax
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
jle 0x404017
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_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
jg 0x403fe0
jmp 0x404017
mov ecx, dword [edi + 0xc]
call fcn.0040d9f0
mov ecx, dword [edi + 0x14]
call fcn.004119f0
mov ecx, dword [edi + 0x18]
call fcn.00413200
jmp 0x40402e
mov esi, 1
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x40406a
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404060
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404099
push edx
push ecx
call fcn.0046e36f
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.0046e5dc
mov esp, ebp
pop ebp
ret 8
call fcn.0048f279
call fcn.0048f279
call fcn.0048f279
call fcn.0048f279
mov edi, edi
dec edx
cmp eax, 1015152704
inc eax
add byte [edi], cl
cmp eax, 0x3d1e0040
inc eax
add byte [0x3c00403d], ch
cmp eax, 0x3db30040
inc eax
add byte [ebp + edi - 0x74aaffc0], ah
in al, dx
push 0xffffffffffffffff
push 0x4acf9b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4e437c]
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 ecx, dword [0x4ea1e8]
mov ecx, dword [ecx + 8]
call fcn.00415850
test eax, eax
je 0x40418b
xor eax, eax
mov dword [ebp - 0x30], 0
push str.LocalService
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00405010
mov ecx, dword [0x4ea1e8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0x18]
call fcn.00413040
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x40417a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404170
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445d
push edx
push ecx
call fcn.0046e36f
add esp, 8
xor ecx, ecx
mov eax, 9
test esi, esi
cmovne eax, ecx
jmp 0x404441
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], ebx
xor eax, eax
mov dword [ebp - 4], 1
push str.wps.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00405010
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x274], eax
jb 0x4041f7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x4042ec
cmp word [eax], 0
je 0x4042ec
push 0x228
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0x22c
push 0
push eax
call fcn.00486380
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
je 0x4042ec
lea ecx, [ebp - 0x26c]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4042e0
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0048f8c0
add esp, 8
test eax, eax
jne 0x4042b8
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x278]
je 0x4042b8
cmp edi, ebx
je 0x404299
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x288], edi
jmp 0x4042b8
lea eax, [ebp - 0x264]
push eax
push edi
lea ecx, [ebp - 0x28c]
call fcn.00403460
mov ebx, dword [ebp - 0x284]
mov edi, dword [ebp - 0x288]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404266
mov esi, dword [ebp - 0x28c]
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], esi
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x278], ecx
cmp esi, edi
je 0x404347
sub edi, esi
lea ecx, [ebp - 0x34]
mov esi, edi
sar esi, 2
push esi
call fcn.00404fb0
push edi
push dword [ebp - 0x27c]
mov dword [ebp - 0x274], eax
lea ecx, [eax + esi*4]
push eax
mov dword [ebp - 0x270], ecx
call fcn.00485e00
mov ecx, dword [ebp - 0x270]
add esp, 0xc
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
mov esi, edx
cmp esi, ecx
je 0x404391
mov ebx, dword [ebp - 0x278]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404378
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jne 0x404353
mov ebx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x274]
test edx, edx
je 0x4043c2
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4043b8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404462
push ecx
push edx
call fcn.0046e36f
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4043f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4043ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404462
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov ecx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x40443f
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x404435
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404462
push ebx
push ecx
call fcn.0046e36f
add esp, 8
xor eax, eax
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.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.0048f279
call fcn.0048f279
int3