Function at 0x41878a
Capabilities:
Copy file
Delete file

Disassembly:
push 0x90
mov eax, 0x466084
call fcn.0044584f
mov ebx, ecx
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], esi
jne 0x418cde
xor edi, edi
mov dword [ebx + 0x190], edi
test eax, eax
jne 0x41880e
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4187ce
mov eax, dword [eax]
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4187d9
mov esi, dword [esi]
push eax
push esi
push str.Download___s____s__FAILED___
push edi
push 8
push str.UpdateMgr.cpp
push 0x40d
call fcn.0042ab69
add esp, 0x1c
lea eax, [ebx + 0x188]
mov dword [eax], 0x7539
push eax
push 4
push 0x1003
jmp 0x418d29
push eax
push edi
mov dword [esi + 0xc0], 2
call fcn.00429ff7
pop ecx
pop ecx
test eax, eax
jg 0x41882d
mov dword [ebp - 0x9c], edi
jmp 0x418846
push dword [ebp - 0x94]
push edi
call fcn.00429ff7
pop ecx
pop ecx
call fcn.00448470
mov dword [ebp - 0x9c], esp
push dword [ebp - 0x94]
push edi
call fcn.00429ff7
shr eax, 1
push eax
push dword [ebp - 0x9c]
push dword [ebp - 0x94]
push edi
call fcn.00429fa9
add esp, 0x18
mov dword [ebp - 0x94], eax
cmp dword [esi + 0xb4], 0x37
jne 0x4188c0
lea ecx, [ebx + 0x38]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00404375
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x1c]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x5c]
call fcn.004029b6
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push edi
cmovae eax, dword [ebp - 0x5c]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x5c]
push edi
push 1
call fcn.00401833
jmp 0x418d30
cmp dword [ebx + 0x1c], edi
je 0x418b05
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404375
push 0xffffffffffffffff
lea eax, [esi + 4]
mov dword [ebp - 4], 1
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
call fcn.004029b6
mov ecx, dword [esi + 0xd8]
lea eax, [esi + 0xc8]
push 8
pop esi
mov dword [ebp - 0x98], eax
cmp dword [eax + 0x14], esi
jb 0x41890d
mov eax, dword [eax]
push 0x800c
push ecx
mov ecx, dword [ebp - 0x94]
mov edx, eax
call fcn.0040152b
pop ecx
pop ecx
test eax, eax
jne 0x41896c
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14], esi
jb 0x418933
mov eax, dword [eax]
push dword [ebp - 0x94]
push eax
push str.Hash_is_wrong___s____s_
push edi
push esi
push str.UpdateMgr.cpp
push 0x43a
call fcn.0042ab69
add esp, 0x1c
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
jmp 0x4188b3
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x44], edi
je 0x4189f5
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404375
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x44]
push 0xffffffffffffffff
push edi
add eax, 0x34
mov byte [ebp - 4], 2
push eax
call fcn.004029b6
cmp dword [ebp - 0x30], esi
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0040b2d9
pop ecx
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401bb1
push 0x47b858
call fcn.004012f1
pop ecx
push eax
push 0x47b858
lea ecx, [ebp - 0x2c]
call fcn.00402a5c
push 0xffffffffffffffff
push edi
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x2c]
call fcn.004029b6
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401833
push str.atgpcdec.dll
call fcn.004012f1
pop ecx
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, eax
push str.atgpcdec.dll
push dword [eax + 0x10]
push edi
call fcn.00402823
test eax, eax
lea eax, [ebp - 0x2c]
jne 0x418a38
cmp dword [ebp - 0x18], esi
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x418af6
cmp dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.0042a06b
pop ecx
pop ecx
test eax, eax
jg 0x418a54
mov dword [ebp - 0x90], edi
jmp 0x418a72
cmp dword [ebp - 0x18], esi
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.0042a06b
pop ecx
pop ecx
call fcn.00448470
mov dword [ebp - 0x90], esp
cmp dword [ebp - 0x18], esi
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push eax
cmovae esi, dword [ebp - 0x2c]
push edi
call fcn.0042a06b
push eax
push dword [ebp - 0x90]
push esi
push edi
call fcn.0042a01b
mov esi, dword [ebp - 0x94]
push esi
push edi
mov dword [ebp - 0x98], eax
call fcn.0042a06b
add esp, 0x20
test eax, eax
jg 0x418abe
mov dword [ebp - 0x90], edi
jmp 0x418ad2
push esi
push edi
call fcn.0042a06b
pop ecx
pop ecx
call fcn.00448470
mov dword [ebp - 0x90], esp
push 1
push dword [ebp - 0x98]
push esi
push edi
call fcn.0042a06b
push eax
push dword [ebp - 0x90]
push esi
push edi
call fcn.0042a01b
add esp, 0x18
push eax
call dword [ebx + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push edi
push 1
call fcn.00401833
mov ecx, ebx
call fcn.00418d3e
test eax, eax
je 0x418d30
push str.UPDATE_COMPLETED___
push edi
push 2
push str.UpdateMgr.cpp
push 0x453
call fcn.0042ab69
add esp, 0x14
mov ecx, ebx
push edi
push edi
push 0x100b
call fcn.0041874d
push dword [ebx + 0x184]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, 0x4807d0
push esi
push ebx
call dword [0x4958a8]
push eax
push edi
call fcn.00429ff7
pop ecx
pop ecx
test eax, eax
jg 0x418b66
mov esi, edi
jmp 0x418b7e
push esi
push ebx
call dword [0x4958a8]
push eax
push edi
call fcn.00429ff7
pop ecx
pop ecx
call fcn.00448470
mov esi, esp
push 0x4807d0
push ebx
call dword [0x4958a8]
push eax
push edi
call fcn.00429ff7
pop ecx
pop ecx
shr eax, 1
push eax
push esi
push 0x4807d0
push ebx
call dword [0x4958a8]
push eax
push edi
call fcn.00429fa9
add esp, 0x10
lea ecx, [ebp - 0x8c]
push eax
call fcn.00401720
push 0x480814
push ebx
mov dword [ebp - 4], 3
call dword [0x4958a8]
mov esi, eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x8c]
push eax
call fcn.00404375
push esi
push edi
mov byte [ebp - 4], 4
call fcn.00429ff7
pop ecx
pop ecx
test eax, eax
jg 0x418bf6
mov dword [ebp - 0x90], edi
jmp 0x418c0a
push esi
push edi
call fcn.00429ff7
pop ecx
pop ecx
call fcn.00448470
mov dword [ebp - 0x90], esp
push esi
push edi
call fcn.00429ff7
shr eax, 1
push eax
push dword [ebp - 0x90]
push esi
push edi
call fcn.00429fa9
mov esi, eax
push esi
call fcn.004012f1
add esp, 0x1c
lea ecx, [ebp - 0x74]
push eax
push esi
call fcn.00402a5c
push 1
lea eax, [ebx + 0x38]
mov ecx, ebx
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.00417ce3
test eax, eax
jne 0x418c6d
lea eax, [ebx + 0x188]
mov ecx, ebx
push eax
push 4
push 0x1003
mov dword [eax], 0x7539
call fcn.0041874d
push 0x47fe2c
call fcn.004012f1
pop ecx
push eax
push 0x47fe2c
push dword [ebx + 0x30]
lea ecx, [ebx + 0x20]
push edi
call fcn.00402823
test eax, eax
jne 0x418cc8
push 1
lea eax, [ebx + 0x38]
mov ecx, ebx
push eax
lea eax, [ebx + 0xf8]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.00417ce3
test eax, eax
jne 0x418cc8
lea eax, [ebx + 0x188]
mov ecx, ebx
push eax
push 4
push 0x1003
mov dword [eax], 0x7539
call fcn.0041874d
push edi
push 1
lea ecx, [ebp - 0x74]
call fcn.00401833
lea ecx, [ebp - 0x8c]
jmp 0x4188b3
cmp dword [ebp + 8], 1
jne 0x418d30
xor edi, edi
cmp dword [ebx + 0x178], edi
jne 0x418d00
push edi
push edi
push 0x1009
call fcn.0041874d
mov eax, dword [ebp - 0x94]
add dword [ebx + 0x178], eax
xor edx, edx
imul eax, dword [ebx + 0x178], 0x64
div dword [ebx + 0x174]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push 4
push 0x100a
mov ecx, ebx
call fcn.0041874d
lea esp, [ebp - 0xac]
call fcn.004457fe
ret 0xc