Function at 0x4c4af0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x5655db
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp + 0x20], edi
lea edx, [edi + 0x28]
lea ecx, [ebp + 0xc]
call fcn.004b7d20
mov dword [ebp - 4], 0
lea esi, [edi + 0x34]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4c4bbc
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00478250
or ebx, 0xffffffff
cmp byte [0x5dc4e4], 0
je 0x4c4bb3
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c52a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x34], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x34]
push 0x20
push str.Newer_version_is_at_a_local_URL.
call fcn.00418fd0
lea eax, [ebp + 0x34]
mov ecx, 0x5dc4ac
push eax
call fcn.004c5760
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4bb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp + 0x3a], 1
jmp 0x4c526f
lea eax, [ebp + 0x28]
push eax
call fcn.004c52d0
mov byte [ebp - 4], 6
mov ecx, esi
push eax
call fcn.00478250
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp + 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4bf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4c4c1e
lea ecx, [eax - 1]
test ecx, ecx
js 0x4c52ae
cmp ecx, eax
jg 0x4c52ae
cmp word [edx + ecx*2], 0x5c
je 0x4c4c1e
push 0x5c
mov ecx, esi
call fcn.00490cf0
push ecx
push esi
lea ecx, [ebp - 0x98]
call fcn.004b7ff0
mov byte [ebp - 4], 8
add edi, 0x30
mov ecx, esi
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c52a4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x28], esi
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x28]
push eax
push ecx
push 0
push edi
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x98]
push dword [edi + 0x2c]
lea eax, [edi + 0x28]
push eax
call fcn.004b8220
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c4c95
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
sete byte [ebp + 0x2f]
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
cmp dword [eax - 0xc], 0
jne 0x4c4d12
mov eax, dword [ecx + 8]
lea esi, [ecx + 8]
cmp dword [eax - 0xc], 0
jne 0x4c4cd5
push ecx
mov ecx, esi
call fcn.00478250
mov ecx, esi
call fcn.004cf150
mov edx, 0xa1
lea ecx, [ebp + 0x30]
call fcn.004bb1b0
mov byte [ebp - 4], 0xd
push dword [esi]
push dword [ebp + 0x30]
push edi
call fcn.004087c0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4d12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x98]
mov dword [ebp - 0x44], 0x585f10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 0x59344c
mov dword [ebp - 0x64], 0x596a94
mov dword [ebp - 0x44], 0x596aa4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004d4f00
mov byte [ebp - 4], 0x15
nop dword [eax]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x4c4dbc
call fcn.0051eed9
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4c4dbc
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 0x30], 0xffffffff
jmp 0x4c4def
push 0
push 0
push eax
call fcn.0051efdb
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004110a0
push 0
push 0x443ac0
push esi
push 0xd8
push dword [0x5db2b8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp + 0x30], eax
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 0x14]
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x34], 0
test edi, edi
jne 0x4c4ea9
mov eax, dword [ebp + 0x20]
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 4], 0x583c78
mov dword [ebp + 8], esi
mov byte [ebp - 4], 0x16
cmp esi, 0xffffffff
jne 0x4c4e57
mov byte [ebp - 4], 0x15
mov dword [ebp + 4], 0x583c78
push eax
jmp 0x4c4e89
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4c4e76
mov byte [ebp - 4], 0x15
mov dword [ebp + 4], 0x583c78
test esi, esi
je 0x4c4e97
jmp 0x4c4e88
mov dword [ebp + 0x34], eax
mov byte [ebp - 4], 0x15
mov dword [ebp + 4], 0x583c78
test esi, esi
je 0x4c4e9a
push esi
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x20]
cmp eax, dword [esi + 0x2c]
je 0x4c4eac
mov al, 1
mov byte [ebp + 0x3b], al
jmp 0x4c4eb5
mov esi, dword [ebp + 0x20]
xor al, al
mov byte [ebp + 0x3b], al
test edi, edi
jne 0x4c4ec3
cmp dword [ebp + 0x30], 1
jne 0x4c4ec3
test al, al
je 0x4c5128
push dword [esi + 0x34]
mov byte [ebp + 0x3a], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x34]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 0x1c]
push 5
push str..part
call fcn.00418fd0
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, 0xe0000008
je 0x4c5226
cmp dword [ebp + 0x14], 2
jge 0x4c516a
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c52a4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x24], esi
mov byte [ebp - 4], 0x1b
cmp byte [ebp + 0x3b], 0
je 0x4c4f4c
push 0x111
lea ecx, [ebp + 0x24]
call fcn.00415200
mov esi, dword [ebp + 0x24]
jmp 0x4c4fcc
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.004967d0
add esp, 4
mov byte [ebp - 4], 0x1c
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4c4fae
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c4f9f
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4c4f9f
call fcn.00408b20
mov dword [ebp + 0x30], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4c4f97
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x30]
lea esi, [eax + 0x10]
mov dword [ebp + 0x24], esi
jmp 0x4c4fae
push dword [edx - 0xc]
lea ecx, [ebp + 0x24]
push edx
call fcn.00408e90
mov esi, dword [ebp + 0x24]
mov byte [ebp - 4], 0x1b
mov eax, ebx
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4fcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c52a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp + 0x28]
push esi
push 0x102
push eax
call fcn.0049cd80
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
cmp dword [eax - 0xc], 0
mov dword [ebp + 0x30], edi
jne 0x4c506c
mov eax, dword [ecx + 8]
lea edi, [ecx + 8]
cmp dword [eax - 0xc], 0
jne 0x4c502c
push ecx
mov ecx, edi
call fcn.00478250
mov ecx, edi
call fcn.004cf150
mov edx, 0xa1
lea ecx, [ebp]
call fcn.004bb1b0
mov byte [ebp - 4], 0x20
push dword [edi]
mov edi, dword [ebp + 0x30]
push dword [ebp]
push edi
call fcn.004087c0
add esp, 0xc
mov byte [ebp - 4], 0x1f
mov eax, ebx
mov edx, dword [ebp]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c506c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x3b], 0
test eax, eax
jne 0x4c508a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x3b], 1
mov eax, dword [edi]
xor ecx, ecx
mov edi, dword [ebp + 0x28]
mov edx, 0x45
cmp dword [eax - 0xc], ecx
cmovne ecx, eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
call fcn.00439980
add esp, 8
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x3b], 0
je 0x4c50c6
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0x30]
cmp eax, 2
je 0x4c5131
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c50e6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5101
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4d90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c4d90
mov byte [ebp + 0x3a], 1
jmp 0x4c5244
mov byte [ebp - 4], 0x1b
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c514c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5167
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x30]
cmp byte [0x5dc4e4], 0
je 0x4c5224
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c52b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x34], eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x34]
push 0x2a
push str.Failed_to_download_a_newer_version._Error:
call fcn.00418fd0
push ecx
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.004967d0
add esp, 4
mov byte [ebp - 4], 0x2a
mov edx, dword [eax]
test edx, edx
je 0x4c51da
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c51c1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x34]
call fcn.00418fd0
lea eax, [ebp + 0x34]
mov ecx, 0x5dc4ac
push eax
call fcn.004c5760
mov byte [ebp - 4], 0x29
mov eax, ebx
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp + 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5224
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c5226
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
call fcn.004d2650
mov byte [ebp - 4], 8
cmp byte [ebp + 0x2f], 0
je 0x4c5260
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.004b80f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c528e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0x3a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x3c]
pop ebp
ret
push 0x80004005
call fcn.00408fe0
push 0x80070057
call fcn.00408fe0
push 0x80004005
call fcn.00408fe0
int3