Function at 0x484a30
Capabilities:
Check http status code
Get common file path
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x282
push 0
push 0
dec ecx
jne 0x484a39
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404cc0
mov eax, dword [ebp + 0xc]
call fcn.00404cc0
xor eax, eax
push ebp
push 0x485119
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.004048a8
push 3
push 0
mov ecx, dword [ebp - 0x24]
mov edx, 0x393
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x38]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00484420
cmp byte [ebx + 0x69], 2
jne 0x484b68
lea edx, [ebp - 0x13d0]
mov eax, dword [ebp + 0xc]
call fcn.0040990c
cmp dword [ebp - 0x13d0], 0
jne 0x484acc
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.00404b1c
jmp 0x484ad7
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.004048a8
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404cd0
mov edx, eax
lea eax, [ebp - 0x13d4]
call fcn.00404a08
mov eax, dword [ebp - 0x13d4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cd0
mov edx, eax
lea eax, [ebp - 0x13d8]
call fcn.00404a08
mov edx, dword [ebp - 0x13d8]
mov eax, ebx
pop ecx
call fcn.00484728
test al, al
je 0x484b5f
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp byte [ebp + 8], 0
je 0x484b56
lea edx, [ebp - 0x13dc]
mov eax, dword [ebp - 0x20]
call fcn.004088fc
mov edx, dword [ebp - 0x13dc]
mov eax, 0x485134
call fcn.00404e14
test eax, eax
jne 0x484b56
mov eax, dword [ebp - 0x20]
call fcn.00483e70
mov byte [ebp - 9], 1
jmp 0x4850c9
mov byte [ebp - 9], 0
jmp 0x4850c9
mov eax, dword [ebx + 0x64]
push eax
lea eax, [ebp - 0x13e0]
push eax
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00484620
mov edx, dword [ebp - 0x13e0]
lea eax, [ebp - 8]
call fcn.004048a8
cmp byte [ebx + 0x69], 0
jne 0x484c1c
cmp dword [ebx + 0x40], 0
je 0x484bcd
cmp byte [ebx + 0x110], 0
jne 0x484bcd
lea ecx, [ebp - 0x38]
mov edx, dword [ebx + 0x40]
mov eax, ebx
call fcn.004842f8
mov eax, dword [ebp - 0x38]
call fcn.00404cd0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebx + 0x110], 1
push 0
push 0x84000000
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404cd0
mov esi, eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_FtpFindFirstFileA
test eax, eax
je 0x484bf9
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x13ac]
mov dword [ebp - 0x34], eax
push 0
push 2
push 0x80000000
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_FtpOpenFileA
mov esi, eax
jmp 0x484e6e
mov edi, 0x84000100
cmp byte [ebx + 0x144], 0
je 0x484c30
or edi, 0x400000
cmp byte [ebx + 0x145], 0
je 0x484c3f
or edi, 0x20000000
cmp byte [ebx + 0x18c], 0
jne 0x484cdd
cmp dword [ebx + 0x70], 0
je 0x484c5c
cmp dword [ebx + 0x4c], 0
jne 0x484cdd
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x70]
call fcn.004048a8
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x4c]
call fcn.004048a8
lea ecx, [ebp - 0x13e8]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048451c
mov ecx, dword [ebp - 0x13e8]
lea eax, [ebp - 0x13e4]
mov edx, 0x485144
call fcn.00404b1c
mov eax, dword [ebp - 0x13e4]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0048043c
test al, al
jne 0x484cc7
push 0
push 0
mov ecx, 0x485158
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4850c9
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x14]
call fcn.00404864
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x18]
call fcn.00404864
cmp dword [ebx + 0x70], 0
jne 0x484ce9
cmp dword [ebx + 0x4c], 0
je 0x484d34
push 0x48517c
push dword [ebx + 0x70]
push 0x48519c
push dword [ebx + 0x4c]
lea eax, [ebp - 0x13f0]
mov edx, 3
call fcn.00404b90
mov eax, dword [ebp - 0x13f0]
lea edx, [ebp - 0x13ec]
call fcn.004800f0
push dword [ebp - 0x13ec]
push 0x4851a8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b90
jmp 0x484d3c
lea eax, [ebp - 0x10]
call fcn.00404810
push 0
push edi
mov eax, dword [ebp - 0x10]
call fcn.00404ad0
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404cd0
push eax
mov eax, dword [ebp - 8]
call fcn.00404cd0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
mov dword [ebp - 0x2c], 4
xor eax, eax
mov dword [ebp - 0x30], eax
test esi, esi
je 0x484e6e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x34], 0x191
jne 0x484e36
cmp byte [ebx + 0x18c], 1
jne 0x484e36
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x70]
call fcn.004048a8
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x4c]
call fcn.004048a8
lea ecx, [ebp - 0x13f8]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048451c
mov ecx, dword [ebp - 0x13f8]
lea eax, [ebp - 0x13f4]
mov edx, 0x485144
call fcn.00404b1c
mov eax, dword [ebp - 0x13f4]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0048043c
test al, al
je 0x484e1c
lea eax, [ebx + 0x70]
mov edx, dword [ebp - 0x14]
call fcn.00404864
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 0x18]
call fcn.00404864
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x484cdd
push 0
push 0
mov ecx, 0x485158
mov edx, 0x3bc
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4850c9
cmp dword [ebp - 0x34], 0x12c
jb 0x484e6e
push 6
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x13fc]
call fcn.00408ea0
mov ecx, dword [ebp - 0x13fc]
mov edx, 0x394
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4850c9
test esi, esi
jne 0x484e8a
push 2
push 1
mov ecx, dword [ebp - 0x24]
mov edx, 0x395
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4850c9
lea ecx, [ebp - 0x1400]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00484420
mov ecx, dword [ebp - 0x1400]
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.00404b1c
lea eax, [ebp - 0x113f]
push eax
push 0
push 0x4851b0
mov eax, dword [ebx + 0x140]
call fcn.00404cd0
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x1404]
lea edx, [ebp - 0x113f]
mov ecx, 0x105
call fcn.00404a80
mov edx, dword [ebp - 0x1404]
lea eax, [ebp - 0x128c]
call fcn.00402f44
mov edx, 1
lea eax, [ebp - 0x128c]
call fcn.0040338c
call fcn.004028a8
mov dword [ebp - 0x1c], 0x1000
cmp byte [ebx + 0x69], 1
jne 0x484f3b
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000005
push esi
call sub.wininet.dll_HttpQueryInfoA
xor eax, eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x3a], 0
jmp 0x484ff4
mov eax, dword [0x4ae6b0]
mov eax, dword [eax]
call fcn.0046adb8
lea eax, [ebp - 0x1c]
push eax
push 0x1000
lea eax, [ebp - 0x103a]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x484f7c
mov byte [ebp - 0x3a], 1
jmp 0x485004
cmp dword [ebp - 0x1c], 0
jbe 0x484fa6
cmp dword [ebp - 0x1c], 0x1000
ja 0x484fa6
push 0
lea edx, [ebp - 0x103a]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x128c]
call fcn.004030a0
call fcn.004028a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x28], eax
cmp word [ebx + 0x8a], 0
je 0x484fcf
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
cmp word [ebx + 0xaa], 0
je 0x484fea
lea ecx, [ebp - 0x39]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp dword [ebp - 0x1c], 0
jbe 0x484ff4
mov byte [ebp - 9], 1
cmp dword [ebp - 0x1c], 0
jbe 0x485004
cmp byte [ebp - 0x39], 0
je 0x484f4d
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x128c]
call fcn.004030c0
call fcn.004028a8
mov al, byte [ebp - 0x39]
mov byte [ebx + 0x171], al
mov al, byte [ebp - 0x39]
or al, byte [ebp - 0x3a]
je 0x48504d
lea edx, [ebp - 0x1408]
lea eax, [ebp - 0x113f]
call fcn.00409cbc
mov eax, dword [ebp - 0x1408]
call fcn.004096a0
mov byte [ebp - 9], 0
jmp 0x4850c9
mov eax, dword [ebp - 0x20]
call fcn.004093ac
test al, al
je 0x485061
mov eax, dword [ebp - 0x20]
call fcn.004096a0
lea edx, [ebp - 0x140c]
lea eax, [ebp - 0x113f]
call fcn.00409cbc
mov eax, dword [ebp - 0x140c]
mov edx, dword [ebp - 0x20]
call fcn.004096b8
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp byte [ebp + 8], 0
je 0x4850c9
lea edx, [ebp - 0x1414]
mov eax, dword [ebp - 0x20]
call fcn.00409944
mov eax, dword [ebp - 0x1414]
lea edx, [ebp - 0x1410]
call fcn.004088fc
mov eax, dword [ebp - 0x1410]
mov edx, 0x485134
call fcn.00404c1c
je 0x4850c9
mov eax, dword [ebp - 0x20]
call fcn.00483e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485120
lea eax, [ebp - 0x1414]
mov edx, 0x12
call fcn.00404834
lea eax, [ebp - 0x38]
call fcn.00404810
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404834
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404834
lea eax, [ebp - 8]
call fcn.00404810
lea eax, [ebp + 0xc]
call fcn.00404810
ret