Function at 0x422120
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ddc4
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x56f4d4]
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, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x630], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 8
push eax
mov dword [ebp - 0x63c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a53b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x530fe4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00405270
mov ecx, eax
test ecx, ecx
je 0x422eaa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x644]
call fcn.00404640
test al, al
jne 0x422232
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422210
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.00405a30
lea eax, [ebp - 0x644]
mov dword [ebp - 4], 1
push eax
mov ecx, 0x57aa68
call fcn.00437a10
mov edx, dword [ebp - 0x644]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422271
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x57406c], eax
call fcn.00435910
push 0x531010
push 0
call fcn.004c4bf6
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x531014
call fcn.00437e70
add esp, 8
mov ecx, 0x578070
push 0
push dword [0x573f70]
push 0
call fcn.00421c40
lea ecx, [ebp - 0x658]
call fcn.00406de0
mov dword [ebp - 4], 2
call fcn.00421a70
mov ecx, eax
call fcn.00465670
mov eax, dword [0x578100]
test al, 1
jne 0x422306
or eax, 1
mov dword [0x578100], eax
mov ecx, 0x5780fc
mov byte [ebp - 4], 3
call fcn.0042e620
push 0x529e40
call fcn.00476494
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x5780fc
call fcn.0042e670
push ebx
call fcn.004219b0
mov ecx, eax
call fcn.00417a60
push ebx
push str.lpstrCmdLine_s
call fcn.00437e70
add esp, 8
call fcn.004219b0
mov ecx, eax
call fcn.00417670
push eax
call fcn.00421b30
mov ecx, eax
call fcn.0040e5a0
push str.install
call fcn.00421b30
mov ecx, eax
call fcn.0040e610
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a53b0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x573f70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call fcn.00421b30
mov ecx, eax
call fcn.0040e510
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x63c], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.inst_start
mov byte [ebp - 4], 4
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e200
call fcn.004219b0
mov ecx, eax
call fcn.00419160
mov ebx, eax
call fcn.00435910
mov edi, eax
push edi
mov ecx, dword [edi]
call dword [ecx]
test eax, eax
jne 0x422445
mov ecx, dword [edi]
lea eax, [ebp - 0x628]
push eax
push str.DLL_NETUL
push 0xcc
push dword [0x573f70]
push edi
call dword [ecx + 8]
test eax, eax
jne 0x422413
push str.InitCloudConfig_failed.
call fcn.00437e70
add esp, 4
jmp 0x422445
push str.InitCloudConfig_success.
call fcn.00437e70
lea eax, [ebp - 0x628]
mov dword [ebp - 0x63c], esp
mov ecx, esp
push eax
call fcn.00404310
mov byte [ebp - 4], 5
call fcn.004219b0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00417990
cmp dword [0x573f70], 0
jne 0x422456
test ebx, ebx
jne 0x422456
xor eax, eax
jmp 0x42245b
mov eax, 1
push eax
call fcn.0042da90
cmp dword [0x56e21c], 0
je 0x422506
push str.ntdll.dll
mov dword [ebp - 0x63c], 0
xor ebx, ebx
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x634], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4224fc
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4224d8
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x644]
push ecx
lea ecx, [ebp - 0x63c]
push ecx
call eax
movzx eax, word [ebp - 0x634]
mov ebx, 1
mov dword [ebp - 0x634], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4224fc
mov eax, dword [0x578104]
mov ecx, 1
cmp dword [ebp - 0x63c], 6
cmovae eax, ecx
mov dword [0x578104], eax
mov dword [0x56e21c], 0
cmp dword [0x578104], 0
jne 0x422776
push str.xp_sp2
call fcn.00437e70
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.inst_low_ver
mov byte [ebp - 4], 6
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e200
push 0
push 0x52cd34
push 0x5310a0
push 0x5310d4
push 0
call fcn.0042daa0
xor ebx, ebx
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 1
push 0
push str.fault
mov byte [ebp - 4], 0x27
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e200
mov eax, dword [0x578100]
test al, 1
jne 0x4225c5
or eax, 1
mov dword [0x578100], eax
mov ecx, 0x5780fc
mov byte [ebp - 4], 0x28
call fcn.0042e620
push 0x529e40
call fcn.00476494
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x5780fc
call fcn.0042ec80
call fcn.00421a70
mov ecx, eax
call fcn.004657e0
call fcn.004363b0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.install_end
mov byte [ebp - 4], 0x29
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e200
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x5780ac
call fcn.00407b30
mov edi, dword [0x573f90]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5780a8]
test esi, esi
je 0x422686
cmp dword [esi + 4], 0
jle 0x422654
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x5780a8]
test esi, esi
je 0x422686
mov eax, dword [esi]
test eax, eax
je 0x42266d
push eax
call fcn.004c1f33
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00476099
add esp, 8
push edi
mov dword [0x5780a8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x5780a4]
test esi, esi
je 0x4226df
mov eax, dword [esi]
test eax, eax
je 0x4226b6
push eax
call fcn.004c1f33
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4226cd
push eax
call fcn.004c1f33
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.00476099
add esp, 8
mov esi, dword [0x57809c]
test esi, esi
je 0x422713
cmp dword [esi], 0
je 0x422713
nop
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4226fd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x4226f0
mov esi, dword [0x573ffc]
mov ecx, dword [0x574000]
cmp esi, ecx
jae 0x42273d
mov eax, dword [esi]
test eax, eax
je 0x422736
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x574000]
add esi, 4
cmp esi, ecx
jb 0x422723
mov ecx, 0x578070
call fcn.00424830
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x658]
call fcn.00406e20
mov eax, ebx
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.00476088
mov esp, ebp
pop ebp
ret
mov ecx, 0x5780ac
call fcn.00407510
test eax, eax
jne 0x4227ce
push str.CheckSingleInstance_failed__exit
call fcn.00437e70
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.inst_running
mov byte [ebp - 4], 7
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e200
push 0
push 0x52cd34
push 0x531140
jmp 0x422558
call fcn.00405270
mov ecx, eax
test ecx, ecx
je 0x422eb4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 8
push eax
call fcn.004210f0
add esp, 4
test eax, eax
jg 0x422873
jns 0x422873
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.old_ver
mov byte [ebp - 4], 9
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040e200
push 0
push 0x52cd34
push 0x53116c
push 0x5310d4
push 0
call fcn.0042daa0
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x422564
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x63c], esp
mov dword [eax + 0x24], 0
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0xb
push eax
call fcn.00452b44
lea eax, [ebp - 0x638]
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x648]
push eax
push 0x420460
push 0x5780e8
call fcn.00453532
add esp, 0x10
test eax, eax
je 0x422e8e
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0xd
push eax
call fcn.00452b7e
mov ecx, dword [0x5780e4]
add esp, 4
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 8
push 0
push 0
push str.execute
call fcn.0040e200
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0x10
push eax
call fcn.00452b44
lea eax, [ebp - 0x640]
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x638]
push eax
push 0x420530
push 0x5780f4
call fcn.00453532
add esp, 0x10
test eax, eax
je 0x422e66
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0x12
push eax
call fcn.00452b7e
mov ecx, dword [0x5780f0]
add esp, 4
mov byte [ebp - 4], 8
call fcn.00419160
test eax, eax
je 0x422bf1
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a53b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x573f70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00405270
mov ecx, eax
test ecx, ecx
je 0x422ebe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
mov byte [ebp - 4], 0x15
call fcn.00405270
mov ecx, eax
test ecx, ecx
je 0x422ec8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x634]
call fcn.00404640
test al, al
jne 0x422a32
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a10
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.00405a30
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x634]
push eax
call fcn.00416a90
mov edx, dword [ebp - 0x634]
add esp, 8
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422a6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x18
push eax
call fcn.00452b44
lea eax, [ebp - 0x638]
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x654]
push eax
push 0x420530
push 0x5780f4
call fcn.00453532
add esp, 0x10
test eax, eax
je 0x422c5f
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x1a
push eax
call fcn.00452b7e
mov ecx, dword [0x5780f0]
add esp, 4
mov byte [ebp - 4], 0x15
call fcn.00417670
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404780
add eax, 0x10
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 0x1d
push eax
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.004325f0
add esp, 0x10
test eax, eax
jne 0x422baf
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 1
push 0
push str.inst_frequency_limit
mov byte [ebp - 4], 0x1e
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 0x1d
call fcn.0040e200
mov edx, dword [ebp - 0x63c]
mov eax, esi
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422b66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x644]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422b87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x422564
mov edx, dword [ebp - 0x63c]
mov eax, esi
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422bd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x644]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422bf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421e30
test eax, eax
jne 0x422c83
mov ecx, 0x5780ac
call fcn.00407b30
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.fail_init
mov byte [ebp - 4], 0x1f
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040e200
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x422564
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x1b
push eax
call fcn.00452bc0
add esp, 4
mov byte [ebp - 4], 0x19
test al, al
je 0x422ee8
jmp 0x422ed2
call fcn.00435910
mov edi, eax
push str.SETUPDATA
push 0xd7
push dword [0x573f70]
mov ecx, dword [edi]
push edi
call dword [ecx + 0x10]
test eax, eax
jne 0x422cab
push str.InitPackInfo_failed__exit
jmp 0x422ce0
push str.InitPackInfo_success
call fcn.00437e70
mov eax, dword [edi]
add esp, 4
push str.bizhi.ldsprj
push str.SETUPCONFIG
push 0xd5
push dword [0x573f70]
push edi
call dword [eax + 0xc]
test eax, eax
jne 0x422d74
push str.InitConfig_failed__exit
call fcn.00437e70
add esp, 4
push 4
push 0x52cd34
push 0x530c84
push 0x530ca4
push 0
call fcn.0042daa0
cmp eax, 6
jne 0x422d1d
push 1
push 0
push 0
push str.http:__www.whaleclean.cn
push 0x52d55c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x630], esp
mov dword [eax + 0x24], 0
push 0
push 0
push str.install_file_fail
mov byte [ebp - 4], 0x20
call fcn.00421b30
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040e200
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x422564
push str.InitConfig_success
call fcn.00437e70
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x63c], esp
mov dword [eax + 0x24], 0
mov byte [ebp - 0x629], 0
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x22
push eax
call fcn.00452b44
lea eax, [ebp - 0x638]
mov dword [ebp - 0x654], eax
lea eax, [ebp - 0x629]
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x654]
push eax
push 0x420460
push 0x5780e8
call fcn.00453532
add esp, 0x10
test eax, eax
je 0x422e4a
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x24
push eax
call fcn.00452b7e
mov ecx, dword [0x5780e4]
add esp, 4
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 8
push 0
push 0
push str.go_install
call fcn.0040e200
push dword [ebp + 0x14]
push dword [ebp - 0x630]
call fcn.00424310
mov edx, dword [ebp - 0x64c]
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422e3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x422595
jmp 0x422566
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0x25
push eax
call fcn.00452bc0
add esp, 4
mov byte [ebp - 4], 0x23
jmp 0x422c76
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0x13
push eax
call fcn.00452bc0
add esp, 4
mov byte [ebp - 4], 0x11
test al, al
je 0x422ee8
sub esp, 8
lea eax, [ebp - 0x640]
mov ecx, esp
jmp 0x422edd
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 0xe
push eax
call fcn.00452bc0
add esp, 4
mov byte [ebp - 4], 0xc
jmp 0x422c76
push 0x80004005
call fcn.00404620
push 0x80004005
call fcn.00404620
push 0x80004005
call fcn.00404620
push 0x80004005
call fcn.00404620
sub esp, 8
lea eax, [ebp - 0x638]
mov ecx, esp
push eax
call fcn.00416640
call fcn.0041a720
call fcn.00453629
int3