Function at 0x4850b0
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c83d7
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x62f570]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x20], vtable.CCallback.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x148], edi
mov eax, dword [esi + 0x414]
push eax
mov dword [esp + 0x34], 0x484fa0
mov dword [esp + 0x38], esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [esi + 0x418]
sub eax, 0x10
push eax
call fcn.00405ce0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], ebx
push 0x5c
push ebx
mov byte [esp + 0x150], 1
call fcn.0058444b
add esp, 8
cmp eax, edi
je 0x4851a0
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4851a0
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004858f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 2
call fcn.00405d50
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48519c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4851b3
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esi + 0x418]
mov ecx, dword [esi + 0x414]
lea edx, [esp + 0x20]
push edx
push edi
push eax
push ecx
push edi
call sub.urlmon.dll_URLDownloadToFileW
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x428], ecx
cmp eax, edi
jne 0x48530b
mov edx, dword [esi + 0x420]
cmp dword [edx - 0xc], edi
je 0x48530b
mov edx, dword [esi + 0x418]
lea ecx, [esp + 0x1c]
call fcn.004842a0
mov byte [esp + 0x148], 3
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.0041d460
mov byte [esp + 0x148], 4
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.004065a0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x485248
push eax
call fcn.005805ae
add esp, 4
mov byte [esp + 0x148], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485270
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x420]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00584cce
add esp, 8
test eax, eax
jne 0x4852d4
mov eax, dword [esi + 0x418]
mov ecx, dword [eax - 0xc]
mov edi, dword [sym.imp.Config.dll_Ordinal_13]
lea edx, [ecx + ecx]
push edx
push eax
push 1
push str.UpdateFile
push 0x5e1594
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, dword [esi + 0x41c]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.UpdateVer
push 0x5e1594
push reloc.OLEAUT32.dll_SysReAllocString
call edi
add esp, 0x30
jmp 0x4852eb
mov dword [esi + 0x428], 1
mov esi, dword [esi + 0x418]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48530b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x148], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48532f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret