Function at 0x4c4640
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0xbc
push 0xffffffffffffffff
push 0x564d41
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp + 0xb8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
mov edx, 0x595598
lea ecx, [ebp + 0xa0]
call fcn.00409a10
add esp, 8
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x4c46a3
mov edx, dword [edx]
test edx, edx
jne 0x4c46ab
xor ecx, ecx
jmp 0x4c46bf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c46b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x20]
call fcn.00408e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xa0]
call fcn.00407f30
lea edx, [edi + 8]
lea ecx, [ebp - 0x14]
call fcn.004b8210
mov dword [ebp - 4], 3
or esi, 0xffffffff
mov eax, dword [ebp - 0x14]
lea ebx, [edi + 0x20]
cmp dword [eax - 0xc], 0
je 0x4c4712
push 0
push dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
jmp 0x4c485a
push 0x5d71dc
push edi
lea ecx, [ebp]
call fcn.004bee10
mov byte [ebp - 4], 4
mov dword [ebp + 0xac], 0
mov dword [ebp + 0xb0], 0
mov dword [ebp + 0xb4], 0
mov byte [ebp - 4], 5
lea eax, [edi + 8]
push eax
lea ecx, [ebp + 0xac]
call fcn.0048ff40
mov eax, dword [ebp]
lea ecx, [ebp + 0xac]
push ebx
push ecx
lea ecx, [ebp]
call dword [eax + 0x4c]
mov ebx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xac]
call fcn.0047fd00
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x39], 0
je 0x4c4787
xor bl, bl
jmp 0x4c484e
test ebx, ebx
je 0x4c484b
cmp byte [0x5dc650], 0
je 0x4c4849
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4c489e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
push 0x25
push str.Downloading_of_updates_failed._Error:
call fcn.00419140
push ecx
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.00496ea0
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [eax]
test edx, edx
je 0x4c47ff
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c47e6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00419140
lea eax, [ebp - 0x10]
mov ecx, 0x5dc618
push eax
call fcn.004c6280
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c482b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004a4080
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4c4879
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.0052223b
lea esp, [ebp + 0xbc]
pop ebp
ret
push 0x80004005
call fcn.00408fc0
int3