Function at 0x1001d7c0
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10079214]
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 eax, dword [ebp + 8]
push 0x210
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x220]
push 0
push eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 1
call fcn.10031950
add esp, 0xc
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20219
push 0
push str.SoftwareTencentQQPCMgr
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x224], 0
call esi
test eax, eax
jne 0x1001d892
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], 0x200
jmp 0x1001d8da
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20119
push 0
push str.SoftwareTencentQQPCMgr
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1001e173
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], 0x100
lea eax, [ebp - 0x224]
mov dword [ebp - 0x244], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0x210
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.InstallDir
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d933
mov eax, dword [ebp - 0x228]
cmp eax, 1
je 0x1001d921
cmp eax, 2
jne 0x1001d933
cmp dword [ebp - 0x224], 0
jne 0x1001d933
xor eax, eax
mov word [ebp - 0x220], ax
push str.sysdeepopt.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001d97b
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1001e17a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001e17a
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001e1a6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001e1b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
push 0x1005b82c
call fcn.10004850
test al, al
jne 0x1001d9e3
push 1
push 0x1005b82c
lea ecx, [ebp - 0x224]
call fcn.1000a650
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x234], eax
test ecx, ecx
je 0x1001da08
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1001da1e
call fcn.10005540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1001e1ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x24c], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.1001e810
mov eax, dword [ebp - 0x22c]
add edi, 0xfffffff0
add esp, 0x14
or ebx, 0xffffffff
lea esi, [eax - 0x10]
cmp esi, edi
je 0x1001dabd
cmp dword [edi + 0xc], 0
jl 0x1001daae
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1001daae
push esi
call fcn.10004b60
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001daa3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebp - 0x230], eax
jmp 0x1001dabd
push dword [eax - 0xc]
lea ecx, [ebp - 0x230]
push eax
call fcn.1000a650
mov eax, 1
mov dword [ebp - 0x24c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 4
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dae9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x234]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001db07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push 0x1005f4a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], edi
cmp eax, edi
jl 0x1001dc8e
nop dword [eax]
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 0xa
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x224]
push edi
push str.job_d
push eax
call fcn.10004e90
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1001dbc1
push 0x105
lea ecx, [ebp - 0x22c]
call fcn.1000a000
mov esi, dword [ebp - 0x22c]
cmp dword [esi - 8], 0x105
jl 0x1001e1c4
mov edi, dword [ebp - 0x224]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1005a6b8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10038873
add esp, 8
test eax, eax
js 0x1001e1c4
cmp eax, dword [esi - 8]
jg 0x1001e1c4
push esi
push dword [ebp - 0x230]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.10038a2a
add esp, 8
test eax, eax
je 0x1001dfdc
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dc5a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dc75
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
inc edi
mov dword [ebp - 0x228], edi
cmp edi, dword [ebp - 0x234]
jle 0x1001db40
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push str.hkcurun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], edi
cmp eax, edi
jl 0x1001de10
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 0x13
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x22c]
push edi
push str.hkcurun_d
push eax
call fcn.10004e90
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1001dd41
push 0x105
lea ecx, [ebp - 0x228]
call fcn.1000a000
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1001e1c4
mov edi, dword [ebp - 0x22c]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1005a6b8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10038873
add esp, 8
test eax, eax
js 0x1001e1c4
cmp eax, dword [esi - 8]
jg 0x1001e1c4
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x250]
push esi
push dword [eax]
call fcn.10038a2a
add esp, 8
test eax, eax
je 0x1001e066
mov byte [ebp - 4], 0x13
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dddc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001ddf7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x224], edi
cmp edi, dword [ebp - 0x234]
jle 0x1001dcc0
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push str.hklmrun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], edi
cmp eax, edi
jl 0x1001df92
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 0x1c
call fcn.10005540
test eax, eax
je 0x1001e1a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x22c]
push edi
push str.hklmrun_d
push eax
call fcn.10004e90
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1001dec3
push 0x105
lea ecx, [ebp - 0x228]
call fcn.1000a000
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1001e1c4
mov edi, dword [ebp - 0x22c]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1005a6b8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10038873
add esp, 8
test eax, eax
js 0x1001e1c4
cmp eax, dword [esi - 8]
jg 0x1001e1c4
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x250]
push esi
push dword [eax]
call fcn.10038a2a
add esp, 8
test eax, eax
je 0x1001e0f0
mov byte [ebp - 4], 0x1c
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001df5e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001df79
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x224], edi
cmp edi, dword [ebp - 0x234]
jle 0x1001de42
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001dfb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1001e17a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001e17a
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e001
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e01c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001e03b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1001e17a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001e17a
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0x13
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e08b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e0a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001e0c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1001e17a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001e17a
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0x1c
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e115
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001e130
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001e14f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1001e17a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
jmp 0x1001e17a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x23c], 0
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.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80070057
call fcn.10004830
int3