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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4893dc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2f0
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2f8], edi
cmp dword [esi + 0x10], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x2fc], eax
jne 0x40dc1e
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x40e787
lea ecx, [ebp - 0x2f0]
call fcn.0040c010
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x280]
mov edx, esi
push eax
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0040d5d0
add esp, 0xc
lea ecx, [ebp - 0x2e0]
mov esi, dword [eax + 0x10]
call fcn.004087f0
test esi, esi
jne 0x40ddf2
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 8
jb 0x40dd25
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40dd86
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp edx, 8
jb 0x40dde6
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dddc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 4
jmp 0x40e76c
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df35
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 8
jb 0x40de68
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40dec9
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40debf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp edx, 8
jb 0x40df29
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40df1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 5
jmp 0x40e76c
push 0x208
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00455ce0
add esp, 0xc
mov dword [ebp - 0x300], 0x208
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push str.CC_FLASH_VER
push str.SoftwareTencentQQBrowserPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [ebp - 0x2c8]
test eax, eax
jne 0x40e18b
lea ecx, [ebp - 0x268]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df91
sub ecx, edx
lea eax, [ebp - 0x2c8]
sar ecx, 1
lea edx, [ebp - 0x268]
cmp dword [ebp - 0x2b4], 8
cmovae eax, esi
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2b8]
cmp ecx, eax
cmovb eax, ecx
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x40e00f
mov eax, edx
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f4]
sub eax, edx
mov dword [ebp - 0x2f4], eax
nop word [eax + eax]
mov ax, word [eax + edx]
cmp ax, word [edx]
jne 0x40e18b
mov eax, dword [ebp - 0x2f4]
add edx, 2
sub dword [ebp - 0x2e4], 1
jne 0x40dff0
cmp dword [ebp - 0x2b8], ecx
jb 0x40e18b
ja 0x40e18b
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
mov dword [ebp - 0x2e4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e067
push dword [ebp - 0x2e4]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
je 0x40e067
push 4
push 0
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 8
jb 0x40e0c4
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40e125
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e11b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
cmp eax, 8
jb 0x40e17f
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40e175
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push ecx
push esi
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 6
jmp 0x40e76c
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0xf
mov byte [ebp - 0x2b0], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x26c], 8
lea edx, [ebp - 0x2b0]
cmovae ecx, dword [ebp - 0x280]
push ecx
call fcn.0040cba0
add esp, 4
test al, al
jne 0x40e3a2
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
mov dword [ebp - 0x2e4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e225
push dword [ebp - 0x2e4]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
je 0x40e225
push 4
push 0
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x29c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 0x10
jb 0x40e27c
mov ecx, dword [ebp - 0x2b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e272
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0xf
mov byte [ebp - 0x2b0], 0
cmp edx, 8
jb 0x40e2db
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e2d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40e33c
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e332
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
cmp eax, 8
jb 0x40e396
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40e38c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push ecx
push esi
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 8
jmp 0x40e76c
push 0x42
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00455ce0
add esp, 0xc
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x29c], 0x10
lea eax, [ebp - 0x2b0]
cmovae eax, dword [ebp - 0x2b0]
push 0x21
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x298]
cmovae eax, dword [ebp - 0x298]
push ecx
push eax
call fcn.00462f58
add esp, 8
test eax, eax
je 0x40e5c5
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
mov dword [ebp - 0x2e4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e448
push dword [ebp - 0x2e4]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
je 0x40e448
push 4
push 0
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x29c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 0x10
jb 0x40e49f
mov ecx, dword [ebp - 0x2b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e495
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0xf
mov byte [ebp - 0x2b0], 0
cmp edx, 8
jb 0x40e4fe
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e4f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40e55f
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
cmp eax, 8
jb 0x40e5b9
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40e5af
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push ecx
push esi
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 9
jmp 0x40e76c
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x40e603
movups xmm0, xmmword [ebp - 0x2c8]
movups xmm1, xmmword [eax]
movq xmm2, qword [eax + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x2b8]
movups xmmword [ebp - 0x2c8], xmm1
mov esi, dword [ebp - 0x2c8]
movq qword [eax + 0x10], xmm0
movq qword [ebp - 0x2b8], xmm2
lea eax, [ebp - 0x280]
mov ecx, edi
push eax
call fcn.004085f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x29c]
cmp edx, 0x10
jb 0x40e64f
mov ecx, dword [ebp - 0x2b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e645
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0xf
mov byte [ebp - 0x2b0], 0
cmp edx, 8
jb 0x40e6ae
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40e70f
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e705
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push edx
push ecx
call fcn.00453c42
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x26c], 7
cmp eax, 8
jb 0x40e765
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40e75b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e7a7
push ecx
push esi
call fcn.00453c42
add esp, 8
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x2ec], 0
je 0x40e787
mov eax, dword [ebp - 0x2e8]
test eax, eax
je 0x40e787
push dword [ebp - 0x2f0]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004584af
int3