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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d66ba
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.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x45ce1f
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x45ce46
push 0x80004005
call fcn.0041ce60
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 + 0x6c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0041c740
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 0x45cea8
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 0x45cfa1
mov edx, dword [ebx + 0x6c]
cmp word [edx], 0
jne 0x45cec7
xor ecx, ecx
jmp 0x45cedf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ced0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004393e0
lea ecx, [ebp - 0x2c]
call fcn.0048d580
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0048d390
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x45cf12
push 0xffffffffffffffff
push 0
push eax
call fcn.00439070
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x45cf2b
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00433850
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.00422000
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 0x45cfb3
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041c740
mov esi, dword [ebp - 0x48]
push esi
push str.QQPCMgrDaemon.exe_path:_ws
push 0x515408
call fcn.0048be90
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.0041c6e0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
mov eax, 1
jmp 0x45cfd1
push str.Cant_Find_QQPCMgrDaemon.exe
push 0x515408
call fcn.0048be90
add esp, 8
push 0x4ec230
lea ecx, [ebp - 0x60]
call fcn.0041c9e0
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.0041c6e0
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 0x45d022
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 0x45d022
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 0x45d04a
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45d04d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45d04d
or ebx, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x45d062
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433850
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 0x45d090
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 0x45d0ac
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.004a474b
mov esp, ebp
pop ebp
ret 4