Function at 0x45eaa0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c0a
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x511070]
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, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45eaef
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x45eb16
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push str.QQPCMgrDaemon.exe
lea edx, [ebx + 0x60]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0041c010
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0041c6d0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45eb78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ec71
mov edx, dword [ebx + 0x60]
cmp word [edx], 0
jne 0x45eb97
xor ecx, ecx
jmp 0x45ebaf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45eba0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00439160
lea ecx, [ebp - 0x2c]
call fcn.0048e680
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048e490
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x45ebe2
push 0xffffffffffffffff
push 0
push eax
call fcn.00438df0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x45ebfb
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00433600
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push str.QQPCMgrDaemon.exe
cmovae eax, dword [ebp - 0x2c]
push str.0s
push eax
lea eax, [ebp - 0x54]
push str._s_s_s
push eax
call fcn.00421db0
mov edi, dword [ebp - 0x54]
add esp, 0x14
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45ec83
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041c6d0
mov esi, dword [ebp - 0x48]
push esi
push str.QQPCMgrDaemon.exe_path:_ws
push 0x515488
call fcn.0048cf90
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.0041c670
lea ebx, [eax + 0x10]
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
mov eax, 1
jmp 0x45eca1
push str.Cant_Find_QQPCMgrDaemon.exe
push 0x515488
call fcn.0048cf90
add esp, 8
push 0x4ed230
lea ecx, [ebp - 0x60]
call fcn.0041c970
mov ecx, eax
mov dword [ebp - 4], 6
mov eax, 2
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ecx]
sub ecx, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
call fcn.0041c670
mov ecx, dword [ebp - 0x5c]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp - 0x4c]
or ecx, 4
mov dword [ebp - 4], 5
test cl, 2
je 0x45ecf2
mov edx, dword [ebp - 0x60]
and ecx, 0xfffffffd
mov dword [ebp - 0x4c], ecx
add edx, 0xfffffff0
mov dword [ebp - 0x58], ecx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ecf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], 2
test cl, 1
je 0x45ed1a
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ed1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ed1d
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x45ed32
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
add esi, 0xfffffff0
mov byte [ebp - 4], al
mov eax, ebx
mov dword [ebp - 0x1c], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45ed60
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45ed7c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x5c]
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.004a578d
mov esp, ebp
pop ebp
ret 4