Function at 0x4a04b0
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51592b
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x644], 0
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004c42d0
add esp, 0x24
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x218]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x4a0560
cmp dword [ebp + 0x38], 8
lea edx, [ebp + 0x24]
cmovae edx, dword [ebp + 0x24]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a0585
lea edi, [ebp - 0x420]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a05a0
mov ecx, edx
lea eax, [ebp - 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x4a05da
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
jne 0x4a0604
xor ecx, ecx
jmp 0x4a061f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0610
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00498dc0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x640]
call fcn.0049e0c0
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
push 0
cmovae ecx, dword [ebp - 0x640]
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push 0
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call esi
mov ecx, ebx
test eax, eax
jne 0x4a0723
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], eax
push 0x561700
mov word [ebx], ax
call fcn.00498dc0
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x4a06cd
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00499470
xor eax, eax
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x630], 0
cmp eax, 8
jb 0x4a06ff
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00499470
mov ecx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
cmp ecx, 8
jb 0x4a07a8
inc ecx
push ecx
jmp 0x4a079d
lea eax, [ebp - 0x640]
push eax
call fcn.00499bf0
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x4a074d
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00499470
xor eax, eax
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x630], 0
cmp eax, 8
jb 0x4a077f
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00499470
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x4a07a8
inc eax
push eax
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.00499470
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret 0x34