Function at 0x422c20
Capabilities:
Check if file exists
Delete file
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51470b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x2ec], esi
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f0], 0
jne 0x422c83
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x4231ac
lea ecx, [ebp - 0x2e8]
call fcn.004212b0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], eax
mov word [ebp - 0x27c], ax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], eax
mov word [ebp - 0x294], ax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x27c]
mov edx, ebx
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00422810
add esp, 0xc
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x2c8]
cmp eax, 8
jb 0x422d2a
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.0041e1c0
test ebx, ebx
jne 0x422e0a
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 8
jb 0x422d46
mov eax, dword [esi]
jmp 0x422d48
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x280]
cmp eax, 8
jb 0x422d6b
inc eax
lea ecx, [ebp - 0x294]
push eax
push dword [ebp - 0x294]
call fcn.0041e1c0
xor eax, eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x284], 0
cmp eax, 8
jb 0x422da6
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.0041e1c0
xor eax, eax
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x26c], 0
cmp eax, 8
jb 0x422de1
inc eax
lea ecx, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.0041e1c0
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
mov dword [ebp - 4], 4
jmp 0x423191
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x27c]
push eax
call ebx
test eax, eax
jne 0x422e79
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x422e45
mov eax, dword [esi]
jmp 0x422e47
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x294]
call fcn.0041e2c0
lea ecx, [ebp - 0x27c]
call fcn.0041e2c0
lea ecx, [ebp - 0x2ac]
call fcn.0041e2c0
mov dword [ebp - 4], 5
jmp 0x423191
push 0x208
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.004e9ab0
add esp, 0xc
mov dword [ebp - 0x2ec], 0x208
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push str.CC_FLASH_VER
push str.SoftwareTencentQQBrowserPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x422f6b
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004198d0
test eax, eax
jne 0x422f6b
cmp dword [ebp - 0x268], 8
lea edi, [ebp - 0x27c]
cmovae edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422f11
push edi
call ebx
test eax, eax
je 0x422f11
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x422f37
mov eax, dword [esi]
jmp 0x422f39
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x294]
call fcn.0041e2c0
lea ecx, [ebp - 0x27c]
call fcn.0041e2c0
lea ecx, [ebp - 0x2ac]
call fcn.0041e2c0
mov dword [ebp - 4], 6
jmp 0x423191
mov dword [ebp - 0x2b0], 0xf
mov dword [ebp - 0x2b4], 0
mov byte [ebp - 0x2c4], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
lea edx, [ebp - 0x2c4]
cmovae ecx, dword [ebp - 0x27c]
push ecx
call fcn.00422210
add esp, 4
test al, al
jne 0x42304b
cmp dword [ebp - 0x268], 8
lea edi, [ebp - 0x27c]
cmovae edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422fe6
push edi
call ebx
test eax, eax
je 0x422fe6
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x42300c
mov eax, dword [esi]
jmp 0x42300e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2c4]
call fcn.0042e8b0
lea ecx, [ebp - 0x294]
call fcn.0041e2c0
lea ecx, [ebp - 0x27c]
call fcn.0041e2c0
lea ecx, [ebp - 0x2ac]
call fcn.0041e2c0
mov dword [ebp - 4], 8
jmp 0x423191
push 0x42
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004e9ab0
add esp, 0xc
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x2b0], 0x10
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push 0x21
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push ecx
push eax
call fcn.004f9db0
add esp, 8
test eax, eax
je 0x42313e
cmp dword [ebp - 0x268], 8
lea edi, [ebp - 0x27c]
cmovae edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4230dc
push edi
call ebx
test eax, eax
je 0x4230dc
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x423102
mov eax, dword [esi]
jmp 0x423104
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2c4]
call fcn.0042e8b0
lea ecx, [ebp - 0x294]
call fcn.0041e2c0
lea ecx, [ebp - 0x27c]
call fcn.0041e2c0
lea ecx, [ebp - 0x2ac]
call fcn.0041e2c0
mov dword [ebp - 4], 9
jmp 0x423191
test edi, edi
je 0x423150
lea eax, [ebp - 0x2ac]
mov ecx, edi
push eax
call fcn.0042adb0
lea eax, [ebp - 0x27c]
mov ecx, esi
push eax
call fcn.0041deb0
lea ecx, [ebp - 0x2c4]
call fcn.0042e8b0
lea ecx, [ebp - 0x294]
call fcn.0041e2c0
lea ecx, [ebp - 0x27c]
call fcn.0041e2c0
lea ecx, [ebp - 0x2ac]
call fcn.0041e2c0
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x2e4], 0
je 0x4231ac
mov eax, dword [ebp - 0x2e0]
test eax, eax
je 0x4231ac
push dword [ebp - 0x2e8]
call eax
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 - 0x14]
xor ecx, ebp
call fcn.00471876
mov esp, ebp
pop ebp
ret