Function at 0x40be10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e2338
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x515718]
add eax, 0xfffffff0
xor ebp, ebp
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x20], eax
push str.LoadRtp:_Begin__Run_QQPCRTP__s
mov ecx, 0x5158b0
mov dword [esp + 0x4c], ebp
call fcn.00489840
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.QQPCRTP.exe
call fcn.00413a60
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c05f
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, str.QQPCRTP.exe
mov dword [esp + 0x1c], 0
call fcn.00413a60
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 1
mov byte [esp + 0x54], bl
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
xor ecx, ecx
mov edx, 0x4efddc
call fcn.00422000
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
push str.LoadRtp:_QQPCRTP.exe__s__return:__d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
cmp dword [esp + 0x14], 0
je 0x40c05d
push str.mmon.dll
mov dword [0x5157c4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c05f
lea ebx, [esp + 0x24]
call fcn.0047bb70
mov esi, 8
mov byte [esp + 0x48], 2
cmp dword [eax + 0x18], esi
jb 0x40bf67
mov eax, dword [eax + 4]
jmp 0x40bf6a
add eax, 4
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call fcn.00409c00
mov byte [esp + 0x48], 4
cmp dword [esp + 0x3c], esi
jb 0x40bf8e
mov eax, dword [esp + 0x28]
push eax
call fcn.004b83e9
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], 7
call fcn.004214e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.mmon.dll
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfe8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp esi, ebx
je 0x40c037
lea ecx, [esp + 0x18]
push ecx
push str.SOFTWAREMShield3
mov byte [esp + 0x50], 5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 0x4f07c8
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [0x5157c4], ebx
je 0x40c033
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c05f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c05f
mov ebp, ebx
push ebp
push str.LoadRtp:_End__Success_u
mov ecx, 0x5158b0
call fcn.00489840
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c09a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret