Function at 0x422376
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba5ae
mov eax, dword fs:[0]
push eax
mov eax, 0x150c
call fcn.00492280
mov eax, dword [0x4eb664]
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 esi, edx
xor ebx, ebx
xor eax, eax
mov edi, 0x206
mov dword [ebp - 0x1514], ebx
push edi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4223d9
mov esi, dword [esi]
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.0049333f
xor eax, eax
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.004921d0
add esp, 0x14
lea eax, [ebp - 0x420]
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1058]
call fcn.0040513a
mov esi, str.liebaoManualUpgrade_
push esi
mov dword [ebp - 4], ebx
call fcn.00405113
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1058]
call fcn.004046dd
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x1070]
call fcn.0040513a
mov esi, 0x4d3c8c
push esi
mov byte [ebp - 4], 1
call fcn.00405113
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x1070]
call fcn.0041209b
inc eax
push eax
push ebx
lea eax, [ebp - 0x10a0]
push eax
lea ecx, [ebp - 0x1070]
call fcn.0040dbec
push eax
lea ecx, [ebp - 0x1070]
call fcn.00409050
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x10a0]
call fcn.00405ac5
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x1514], ebx
mov dword [ebp - 0x1518], ebx
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x1518]
push eax
lea edx, [ebp - 0x1514]
lea ecx, [ebp - 0x628]
call fcn.004222e4
pop ecx
test eax, eax
je 0x422a27
mov ecx, dword [ebp - 0x1518]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x1514]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004933e0
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
call fcn.00405113
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1058]
call fcn.004046dd
lea eax, [ebp - 0x218]
push eax
call fcn.00405113
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1070]
call fcn.004046dd
mov edi, 0x4d3c8c
push edi
call fcn.00405113
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1070]
call fcn.004046dd
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1118]
call fcn.0040513a
push str.liebaoManualUpgrade_
mov byte [ebp - 4], 3
call fcn.00405113
pop ecx
push eax
push str.liebaoManualUpgrade_
lea ecx, [ebp - 0x1118]
call fcn.004046dd
lea eax, [ebp - 0x1118]
push eax
lea ecx, [ebp - 0x1148]
call fcn.0047a0b4
push 2
push ebx
lea eax, [ebp - 0x1148]
push eax
lea ecx, [ebp - 0x1510]
mov byte [ebp - 4], 4
call fcn.004836ac
lea eax, [ebp - 0x1148]
push eax
mov byte [ebp - 4], 5
call fcn.0047b0b6
pop ecx
test al, al
je 0x4226f3
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x1510]
call fcn.004837d1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1078], 0
je 0x4226e4
cmp dword [ebp - 0x1074], 8
lea eax, [ebp - 0x1088]
cmovae eax, dword [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x10a0]
call fcn.0040513a
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1044], 8
lea eax, [ebp - 0x1058]
cmovae eax, dword [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x10e8]
call fcn.0040513a
lea eax, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x10e8]
push eax
mov byte [ebp - 4], 8
call fcn.0047a368
pop ecx
pop ecx
push 0
test eax, eax
push esi
lea ecx, [ebp - 0x10e8]
setne bl
call fcn.00405ac5
push 0
push esi
lea ecx, [ebp - 0x10a0]
mov byte [ebp - 4], 6
call fcn.00405ac5
test bl, bl
je 0x4226a4
lea eax, [ebp - 0x1088]
push esi
push eax
call fcn.0047ae3f
pop ecx
pop ecx
lea eax, [ebp - 0x10a0]
push eax
lea ecx, [ebp - 0x1510]
call fcn.004837d1
push eax
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 9
call fcn.0047a13d
lea ecx, [ebp - 0x10a0]
mov byte [ebp - 4], 6
call fcn.0047a0fe
cmp dword [ebp - 0x1078], 0
jne 0x42260f
xor ebx, ebx
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 5
call fcn.0047a0fe
lea ecx, [ebp - 0x1510]
mov byte [ebp - 4], 4
call fcn.0048372b
lea ecx, [ebp - 0x1148]
mov byte [ebp - 4], 3
call fcn.0047a0fe
push ebx
push 1
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], 1
call fcn.00405ac5
push edi
call fcn.00405113
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1058]
call fcn.004046dd
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1100]
call fcn.0047a0b4
lea eax, [ebp - 0x1100]
push eax
mov byte [ebp - 4], 0xa
call fcn.0047e2df
pop ecx
lea eax, [ebp - 0x1100]
push eax
call fcn.0047b33b
pop ecx
test al, al
jne 0x422777
mov dword [ebp - 4], 0xa
jmp 0x422a18
mov esi, str.ManualUpgrade.exe
push esi
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10a0]
push eax
call fcn.0040954d
add esp, 0xc
push eax
lea ecx, [ebp - 0x1130]
mov byte [ebp - 4], 0xc
call fcn.0047a0b4
push ebx
push 1
lea ecx, [ebp - 0x10a0]
mov byte [ebp - 4], 0xe
call fcn.00405ac5
push esi
lea eax, [ebp - 0x1100]
push eax
lea eax, [ebp - 0x10e8]
push eax
call fcn.0040954d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xf
call fcn.0047a0b4
push ebx
push 1
lea ecx, [ebp - 0x10e8]
mov byte [ebp - 4], 0x11
call fcn.00405ac5
lea eax, [ebp - 0x1130]
push eax
call fcn.0047b33b
pop ecx
test al, al
je 0x4229f3
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0x1130]
push eax
call fcn.0047ad40
xor eax, eax
push 0x7fe
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1026]
push ebx
push eax
call fcn.004921d0
add esp, 0x14
xor eax, eax
push 0xffffffffffffffff
mov word [ebp - 0x1040], ax
push ebx
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x1040]
mov dword [ebp - 0x102c], 7
mov dword [ebp - 0x1030], ebx
call fcn.00405a06
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1040]
mov esi, dword [ebp - 0x1030]
cmp ecx, 8
lea eax, [ebp - 0x1040]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
jne 0x4228a7
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x1040]
call fcn.004057a9
mov ecx, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1040]
push ebx
cmp ecx, 8
lea eax, [ebp - 0x1040]
cmovae eax, edx
push eax
push str.http:__up.liebao.cn_liebao_msg.pack
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1028]
push str.__browser_version_s___upgrade_config_url_s___browser_app_dir__s____type_update_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
push 0x1fc
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push ebx
push eax
call fcn.004921d0
add esp, 0x24
lea ecx, [ebp - 0x828]
call fcn.00422a5d
test al, al
je 0x422938
lea edx, [ebp - 0x828]
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x422908
lea edi, [ebp - 0x1028]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x42291e
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x118
lea eax, [ebp - 0x1264]
push ebx
push eax
mov dword [ebp - 0x1268], 0x11c
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x1268]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4d3ae8
lea ecx, [ebp - 0x10d0]
call fcn.0040513a
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x1264], 6
jb 0x42299a
mov esi, str.runas
push esi
call fcn.00405113
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10d0]
call fcn.0040509a
cmp dword [ebp - 0x10a4], 8
push 5
push ebx
lea ecx, [ebp - 0x10b8]
cmovae ecx, dword [ebp - 0x10b8]
cmp dword [ebp - 0x10bc], 8
lea edx, [ebp - 0x1028]
push edx
lea eax, [ebp - 0x10d0]
cmovae eax, dword [ebp - 0x10d0]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 1
lea ecx, [ebp - 0x10d0]
call fcn.00405ac5
push ebx
push 1
lea ecx, [ebp - 0x1040]
call fcn.00405ac5
jmp 0x4229fa
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xe
call fcn.0047a0fe
lea ecx, [ebp - 0x1130]
mov byte [ebp - 4], 0xa
call fcn.0047a0fe
lea ecx, [ebp - 0x1100]
mov byte [ebp - 4], 1
call fcn.0047a0fe
push ebx
push 1
lea ecx, [ebp - 0x1070]
call fcn.00405ac5
push ebx
push 1
lea ecx, [ebp - 0x1058]
call fcn.00405ac5
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.0048f059
leave
ret