Function at 0x45fff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6c43
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x511070]
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 dword [ebp - 0x17c], ecx
xor eax, eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x164], eax
lea ebx, [ecx + 0x6c]
mov dword [ebp - 4], eax
push 0x4f5b74
mov edx, ebx
mov dword [ebp - 0x170], eax
lea ecx, [ebp - 0x168]
call fcn.0041c030
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x138], 0
mov word [ebp - 0x148], ax
cmp word [edx], ax
jne 0x460085
xor ecx, ecx
jmp 0x46009f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460090
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x148]
call fcn.004393e0
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov esi, dword [ebp - 0x168]
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4600d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.md5.txt
mov edx, ebx
lea ecx, [ebp - 0x178]
call fcn.0041c030
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
cmp word [edx], ax
jne 0x460111
xor ecx, ecx
jmp 0x460125
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460116
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x130]
call fcn.004393e0
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x178]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460153
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x134], 8
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4602ce
cmp dword [ebp - 0x134], 8
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x148]
cmovae ecx, dword [ebp - 0x148]
lea edx, [ebp - 0x16c]
push eax
call fcn.00475c00
add esp, 4
test eax, eax
je 0x46058b
cmp dword [ebp - 0x16c], 0
je 0x46058b
cmp dword [ebp - 0x170], 0
je 0x46058b
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x118]
push dword [ebp - 0x170]
push dword [ebp - 0x16c]
push eax
call fcn.004a7960
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x168]
push eax
call fcn.004673e0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x160]
call fcn.00438a50
mov byte [ebp - 4], 8
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x14c], 0x10
cmovae eax, dword [ebp - 0x160]
push eax
push 0x4f5b98
push 0x515408
call fcn.0048be90
mov eax, dword [ebp - 0x164]
add esp, 0xc
test eax, eax
je 0x46025e
push eax
call esi
push 0
lea eax, [ebp - 0x164]
mov dword [ebp - 0x164], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.QMConfigTencentQQPCMgrQQPCMgrTbs
push SysReAllocString
call ebx
test eax, eax
jne 0x4602a4
push dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
push 0x4f5c00
call fcn.0043fb50
lea ecx, [ebp - 0x160]
call fcn.00433970
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x168]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4602ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460451
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x16c], 0
cmovae ecx, dword [ebp - 0x130]
lea edx, [ebp - 0x16c]
push eax
mov dword [ebp - 0x170], 0
call fcn.00475c00
add esp, 4
test eax, eax
je 0x46058b
mov edi, dword [ebp - 0x16c]
test edi, edi
je 0x46058b
mov ebx, dword [ebp - 0x170]
test ebx, ebx
je 0x46058b
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x118]
push ebx
push edi
push eax
call fcn.004a7960
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x168]
push eax
call fcn.004673e0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x160]
call fcn.00438a50
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x160]
cmp dword [ebp - 0x14c], 0x10
cmovae eax, dword [ebp - 0x160]
push eax
push 0x4f5c08
push 0x515408
call fcn.0048be90
mov eax, dword [ebp - 0x164]
add esp, 0xc
test eax, eax
je 0x4603d9
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x164]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.QMConfigTencentQQPCMgrQQPCMgrTbs
push SysReAllocString
mov dword [ebp - 0x164], 0
call ebx
test eax, eax
jne 0x460437
push ecx
lea ecx, [ebp - 0x168]
call fcn.00464f70
lea ecx, [ebp - 0x164]
push dword [eax]
push 0x4f5c20
call fcn.0043fb50
mov dword [ebp - 0x174], 1
lea ecx, [ebp - 0x160]
call fcn.00433970
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call fcn.0041ce40
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x46045e
push eax
call esi
push 0
lea eax, [ebp - 0x164]
mov dword [ebp - 0x164], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.QMConfigTencentQQPCMgrQQPCMgrTbs
push SysReAllocString
call ebx
test eax, eax
jne 0x4604e4
mov ebx, dword [ebp - 0x17c]
push dword [ebx + 0x64]
push 0x4f5c28
push 0x515408
call fcn.0048be90
add esp, 0xc
push dword [ebx + 0x68]
push 0x4f5c38
push 0x515408
call fcn.0048be90
add esp, 0xc
lea ecx, [ebp - 0x164]
push dword [ebx + 0x64]
push 0x4f5c48
call fcn.0043fb50
push dword [ebx + 0x68]
lea ecx, [ebp - 0x164]
push 0x4f5c54
call fcn.0043fb50
mov ebx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x460508
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00433850
xor eax, eax
mov dword [ebp - 0x11c], 7
mov word [ebp - 0x130], ax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
cmp eax, 8
jb 0x460543
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.00433850
mov ecx, dword [ebp - 0x164]
xor eax, eax
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x138], 0
mov word [ebp - 0x148], ax
test ecx, ecx
je 0x46056d
push ecx
call esi
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.004a474b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x4604ea