Function at 0x460ab4
Capabilities:
Connect to http server
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x288
push 0
push 0
dec ecx
jne 0x460abd
push ecx
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 esi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
call fcn.00404d04
mov eax, dword [ebp + 0x30]
call fcn.00404d04
mov eax, dword [ebp + 0x2c]
call fcn.00404d04
mov eax, dword [ebp + 0x24]
call fcn.00404d04
mov eax, dword [ebp + 0x20]
call fcn.00404d04
mov eax, dword [ebp + 0x1c]
call fcn.00404d04
xor eax, eax
push ebp
push 0x4615c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x460c5e
mov eax, dword [ebx + 0x94]
call fcn.00419014
dec eax
jle 0x460b98
lea edx, [ebp - 0x13d4]
mov eax, dword [ebx + 0x34]
call fcn.00408da0
push dword [ebp - 0x13d4]
push 0x4615e8
push dword [ebx + 0x104]
push 0x4615e8
mov eax, dword [ebx + 0x94]
call fcn.00463e34
lea edx, [ebp - 0x13d8]
call fcn.00408da0
push dword [ebp - 0x13d8]
push 0x4615f4
lea eax, [ebp - 0x13d0]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x13d0]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x460ba2
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x115], 0
je 0x460c0f
push dword [ebx + 0x78]
push 0x4615e8
lea edx, [ebp - 0x13e0]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044d708
push dword [ebp - 0x13e0]
lea edx, [ebp - 0x13e4]
mov eax, dword [ebp + 0x24]
call fcn.0045cd64
push dword [ebp - 0x13e4]
push 0x4615e8
push dword [ebx + 0x108]
push 0x4615e8
push dword [ebp + 0x2c]
lea eax, [ebp - 0x13dc]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x13dc]
mov eax, edi
call fcn.0044d738
jmp 0x460c5e
push dword [ebx + 0x78]
push 0x4615e8
lea edx, [ebp - 0x13ec]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044d708
push dword [ebp - 0x13ec]
lea edx, [ebp - 0x13f0]
mov eax, dword [ebp + 0x24]
call fcn.0045cd64
push dword [ebp - 0x13f0]
lea eax, [ebp - 0x13e8]
mov edx, 4
call fcn.00404bd4
mov edx, dword [ebp - 0x13e8]
mov eax, edi
call fcn.0044d738
cmp byte [ebx + 0x112], 0
je 0x460c6e
mov edi, 0x8000000
jmp 0x460c70
xor edi, edi
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
push dword [ebp + 0x2c]
push dword [ebp - 8]
push dword [ebp + 0x30]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x13f4]
mov eax, dword [ebx + 0x158]
call fcn.00404c60
jne 0x460cb3
mov eax, dword [ebx + 0x154]
mov dword [ebp - 0x10], eax
jmp 0x460d1b
cmp dword [ebp - 8], 0
je 0x460cbf
cmp dword [ebp + 0x30], 0
jne 0x460ce7
push 0
push edi
push 1
push 0
push 0
mov ax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.00404d14
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
jmp 0x460d1b
push 0
push edi
push 1
mov eax, dword [ebp + 0x30]
call fcn.00404d14
push eax
mov eax, dword [ebp - 8]
call fcn.00404d14
push eax
mov ax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.00404d14
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x460d7e
cmp word [ebx + 0xa2], 0
je 0x460d3e
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x461534
lea eax, [ebp - 0x13f8]
mov ecx, dword [ebp + 0x2c]
mov edx, 0x461600
call fcn.00404b60
mov eax, dword [ebp - 0x13f8]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x461534
cmp byte [ebp + 0xc], 0
je 0x460da6
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x154], eax
push dword [ebp + 0x2c]
push dword [ebp - 8]
push dword [ebp + 0x30]
lea eax, [ebx + 0x158]
mov edx, 3
call fcn.00404bd4
mov byte [ebp - 0x3d], 0
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
mov edx, dword [ebp + 0x24]
mov eax, 0x461628
call fcn.00404e58
test eax, eax
jle 0x460e46
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0x24]
call fcn.004048ec
jmp 0x460deb
mov eax, dword [ebp - 0x20]
call fcn.00404b14
mov edx, eax
lea eax, [ebp - 0x20]
mov ecx, 1
call fcn.00404db4
mov eax, dword [ebp - 0x20]
call fcn.00404b14
mov edx, dword [ebp - 0x20]
cmp byte [edx + eax - 1], 0x2f
je 0x460e09
mov eax, dword [ebp - 0x20]
call fcn.00404b14
test eax, eax
jg 0x460dd4
mov eax, dword [ebp - 0x20]
call fcn.00404b14
test eax, eax
jle 0x460e46
mov dword [ebp - 0x3c], 0xff
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov byte [ebp - 0x3d], 1
mov eax, dword [ebp - 0x20]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 0x24]
call fcn.0045cd64
push 0
push 0
lea eax, [ebp - 0x12cc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpFindFirstFileA
test eax, eax
jne 0x460e7c
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x460fa4
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x12ac]
mov dword [ebp - 0x28], eax
cmp byte [ebp + 0x18], 0
jne 0x460e9f
cmp word [ebx + 0x14a], 0
je 0x460fa4
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x12b8]
call fcn.0045cc98
cmp word [ebx + 0x14a], 0
je 0x460f2c
mov byte [ebp - 0x29], 1
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x14c]
call dword [ebx + 0x148]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
cmp byte [ebp - 0x29], 0
jne 0x460f96
cmp byte [ebp + 0xc], 0
jne 0x460f0d
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x461534
cmp byte [ebp - 0x3d], 0
je 0x461534
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x461534
fld qword [ebp - 0x38]
mov eax, dword [ebp + 0x14]
fcomp qword [eax]
fnstsw ax
sahf
ja 0x460f96
mov byte [esi], 1
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
cmp byte [ebp + 0xc], 0
jne 0x460f64
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
cmp word [ebx + 0x12a], 0
je 0x461534
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebx + 0x12c]
call dword [ebx + 0x128]
jmp 0x461534
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 0x1c]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpOpenFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460fe8
cmp dword [ebp - 0x28], 0
jne 0x460fe8
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_FtpGetFileSize
mov dword [ebp - 0x28], eax
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
cmp dword [ebp - 0x14], 0
jne 0x461053
cmp word [ebx + 0xd2], 0
je 0x461015
mov ecx, dword [ebp + 0x24]
mov edx, ebx
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
cmp byte [ebp + 0xc], 0
jne 0x461034
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x461534
cmp byte [ebp - 0x3d], 0
je 0x461534
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x461534
cmp dword [ebp + 0x1c], 0
je 0x461066
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0x1c]
call fcn.004048ec
jmp 0x461071
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 0x24]
call fcn.0045cd64
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x20]
call fcn.0045d258
mov edx, dword [ebp - 0x13fc]
lea eax, [ebp - 0x1c]
call fcn.004048ec
lea eax, [ebx + 0x68]
mov edx, dword [ebp - 0x1c]
call fcn.004048a8
lea eax, [ebx + 0x6c]
mov edx, dword [ebp + 0x20]
call fcn.004048a8
mov eax, dword [ebp - 0x1c]
call fcn.004092b4
test al, al
je 0x46117c
mov byte [ebp - 0x29], 1
cmp word [ebx + 0xe2], 0
je 0x4610d9
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebx + 0xe4]
call dword [ebx + 0xe0]
cmp byte [ebp - 0x29], 0
jne 0x461157
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x461107
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x461534
cmp byte [ebp - 0x3d], 0
je 0x461534
lea eax, [ebp - 0x1400]
lea edx, [ebp - 0x13cc]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
cmp dword [ebp - 0x1400], 0
jne 0x461142
mov esi, 0x46162c
lea edi, [ebp - 0x13cc]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x461534
cmp byte [ebx + 0x164], 0
je 0x46117c
lea edx, [ebp - 0x1404]
mov eax, dword [ebp - 0x1c]
call fcn.0045e1fc
mov edx, dword [ebp - 0x1404]
lea eax, [ebp - 0x1c]
call fcn.004048ec
lea edx, [ebp - 0x1408]
mov eax, dword [ebp - 0x1c]
call fcn.00409460
mov eax, dword [ebp - 0x1408]
call fcn.0045d32c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x118c]
call fcn.00402fd4
mov edx, 1
lea eax, [ebp - 0x118c]
call fcn.00403464
call fcn.00402cac
test eax, eax
je 0x461240
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x4611e3
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
cmp word [ebx + 0xa2], 0
je 0x461200
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x461534
lea eax, [ebp - 0x140c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x461734
call fcn.00404b60
mov eax, dword [ebp - 0x140c]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x461534
mov dword [ebp - 0x18], 0x1000
xor esi, esi
mov byte [ebx + 0x38], 0
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x1000
jmp 0x4614d5
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x103d]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4614e5
cmp dword [ebp - 0x18], 0
jbe 0x4612b8
cmp dword [ebp - 0x18], 0x1000
ja 0x4612b8
push 0
lea edx, [ebp - 0x103d]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x118c]
call fcn.0040314c
call fcn.00402c2c
add esi, dword [ebp - 0x18]
cmp dword [ebp - 0x28], 0
jbe 0x461366
mov dword [ebp - 0x1414], esi
xor eax, eax
mov dword [ebp - 0x1410], eax
fild qword [ebp - 0x1414]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x141c], eax
xor eax, eax
mov dword [ebp - 0x1418], eax
fild qword [ebp - 0x141c]
fdivp st(1)
fmul dword [0x461750]
call fcn.00402d30
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.0045a414
push dword [ebx + 0x7c]
push 0x4615e8
lea edx, [ebp - 0x1424]
mov eax, esi
call fcn.0045ce28
push dword [ebp - 0x1424]
push 0x4615e8
push dword [ebx + 0x104]
push 0x4615e8
lea edx, [ebp - 0x1428]
mov eax, dword [ebp - 0x28]
call fcn.0045ce28
push dword [ebp - 0x1428]
lea eax, [ebp - 0x1420]
mov edx, 7
call fcn.00404bd4
mov edx, dword [ebp - 0x1420]
mov eax, dword [ebx + 0x4c]
call fcn.0044d738
jmp 0x46139f
push dword [ebx + 0x7c]
push 0x4615e8
lea edx, [ebp - 0x1430]
mov eax, esi
call fcn.0045ce28
push dword [ebp - 0x1430]
lea eax, [ebp - 0x142c]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x142c]
mov eax, dword [ebx + 0x4c]
call fcn.0044d738
cmp word [ebx + 0xea], 0
je 0x4613bf
push esi
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebx + 0x114], 0
je 0x461415
push dword [ebx + 0x11c]
push 0x4615f4
mov eax, dword [ebx + 0x44]
call fcn.0045a264
lea edx, [ebp - 0x1438]
call fcn.00408da0
push dword [ebp - 0x1438]
push 0x46175c
push dword [ebx + 0x118]
lea eax, [ebp - 0x1434]
mov edx, 5
call fcn.00404bd4
mov edx, dword [ebp - 0x1434]
mov eax, dword [ebx + 0x3c]
call fcn.0044d738
push dword [ebx + 0x80]
push 0x4615e8
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x1414], eax
xor eax, eax
mov dword [ebp - 0x1410], eax
fild qword [ebp - 0x1414]
mov dword [ebp - 0x141c], esi
xor eax, eax
mov dword [ebp - 0x1418], eax
fild qword [ebp - 0x141c]
fdivrp st(1)
fmul dword [0x461760]
call fcn.00402d30
lea edx, [ebp - 0x1440]
call fcn.0045cf7c
push dword [ebp - 0x1440]
lea eax, [ebp - 0x143c]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x143c]
mov eax, dword [ebx + 0x50]
call fcn.0044d738
push dword [ebx + 0x84]
push 0x4615e8
lea eax, [ebp - 0x1448]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.0045d0d0
push dword [ebp - 0x1448]
lea eax, [ebp - 0x1444]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x1444]
mov eax, dword [ebx + 0x54]
call fcn.0044d738
cmp dword [ebp - 0x18], 0
jbe 0x4614e5
cmp byte [ebx + 0x38], 0
je 0x461261
lea eax, [ebp - 0x118c]
call fcn.0040316c
call fcn.00402c2c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x46151a
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x461530
cmp byte [ebp - 0x3d], 0
je 0x461530
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4615d1
lea eax, [ebp - 0x1448]
mov edx, 0xb
call fcn.00404878
lea eax, [ebp - 0x140c]
mov edx, 8
call fcn.00404878
lea eax, [ebp - 0x13ec]
call fcn.00404854
lea eax, [ebp - 0x13e8]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 0x13e0]
call fcn.00404854
lea eax, [ebp - 0x13dc]
mov edx, 4
call fcn.00404878
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 8]
call fcn.00404854
lea eax, [ebp + 0x1c]
mov edx, 3
call fcn.00404878
lea eax, [ebp + 0x2c]
mov edx, 2
call fcn.00404878
ret