Function at 0x4722d4
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 0x4722dd
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.00404f44
mov eax, dword [ebp + 0x30]
call fcn.00404f44
mov eax, dword [ebp + 0x2c]
call fcn.00404f44
mov eax, dword [ebp + 0x24]
call fcn.00404f44
mov eax, dword [ebp + 0x20]
call fcn.00404f44
mov eax, dword [ebp + 0x1c]
call fcn.00404f44
xor eax, eax
push ebp
push 0x472dc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x47247d
mov eax, dword [ebx + 0x94]
call fcn.0041ab50
dec eax
jle 0x4723b7
lea edx, [ebp - 0x13d4]
mov eax, dword [ebx + 0x34]
call fcn.00408eb0
push dword [ebp - 0x13d4]
push 0x472de4
push dword [ebx + 0xfc]
push 0x472de4
mov eax, dword [ebx + 0x94]
call fcn.00475324
lea edx, [ebp - 0x13d8]
call fcn.00408eb0
push dword [ebp - 0x13d8]
push 0x472df0
lea eax, [ebp - 0x13d0]
mov edx, 6
call fcn.00404e14
mov edx, dword [ebp - 0x13d0]
mov eax, dword [ebx + 0x48]
call fcn.0044c614
jmp 0x4723c1
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044c614
cmp byte [ebx + 0x10d], 0
je 0x47242e
push dword [ebx + 0x78]
push 0x472de4
lea edx, [ebp - 0x13e0]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044c5e4
push dword [ebp - 0x13e0]
lea edx, [ebp - 0x13e4]
mov eax, dword [ebp + 0x24]
call fcn.0046ef68
push dword [ebp - 0x13e4]
push 0x472de4
push dword [ebx + 0x100]
push 0x472de4
push dword [ebp + 0x2c]
lea eax, [ebp - 0x13dc]
mov edx, 8
call fcn.00404e14
mov edx, dword [ebp - 0x13dc]
mov eax, edi
call fcn.0044c614
jmp 0x47247d
push dword [ebx + 0x78]
push 0x472de4
lea edx, [ebp - 0x13ec]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044c5e4
push dword [ebp - 0x13ec]
lea edx, [ebp - 0x13f0]
mov eax, dword [ebp + 0x24]
call fcn.0046ef68
push dword [ebp - 0x13f0]
lea eax, [ebp - 0x13e8]
mov edx, 4
call fcn.00404e14
mov edx, dword [ebp - 0x13e8]
mov eax, edi
call fcn.0044c614
cmp byte [ebx + 0x10a], 0
je 0x47248d
mov edi, 0x8000000
jmp 0x47248f
xor edi, edi
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
push dword [ebp + 0x2c]
push dword [ebp - 8]
push dword [ebp + 0x30]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x13f4]
mov eax, dword [ebx + 0x150]
call fcn.00404ea0
jne 0x4724d2
mov eax, dword [ebx + 0x14c]
mov dword [ebp - 0x10], eax
jmp 0x47253a
cmp dword [ebp - 8], 0
je 0x4724de
cmp dword [ebp + 0x30], 0
jne 0x472506
push 0
push edi
push 1
push 0
push 0
mov ax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.00404f54
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
jmp 0x47253a
push 0
push edi
push 1
mov eax, dword [ebp + 0x30]
call fcn.00404f54
push eax
mov eax, dword [ebp - 8]
call fcn.00404f54
push eax
mov ax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.00404f54
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 0x47259d
cmp word [ebx + 0xa2], 0
je 0x47255d
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x472d33
lea eax, [ebp - 0x13f8]
mov ecx, dword [ebp + 0x2c]
mov edx, 0x472dfc
call fcn.00404da0
mov eax, dword [ebp - 0x13f8]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x472d33
cmp byte [ebp + 0xc], 0
je 0x4725c5
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14c], eax
push dword [ebp + 0x2c]
push dword [ebp - 8]
push dword [ebp + 0x30]
lea eax, [ebx + 0x150]
mov edx, 3
call fcn.00404e14
mov byte [ebp - 0x3d], 0
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
mov edx, dword [ebp + 0x24]
mov eax, 0x472e24
call fcn.00405098
test eax, eax
jle 0x472665
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 0x24]
call fcn.00404b2c
jmp 0x47260a
mov eax, dword [ebp - 0x24]
call fcn.00404d54
mov edx, eax
lea eax, [ebp - 0x24]
mov ecx, 1
call fcn.00404ff4
mov eax, dword [ebp - 0x24]
call fcn.00404d54
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax - 1], 0x2f
je 0x472628
mov eax, dword [ebp - 0x24]
call fcn.00404d54
test eax, eax
jg 0x4725f3
mov eax, dword [ebp - 0x24]
call fcn.00404d54
test eax, eax
jle 0x472665
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 - 0x24]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0x24]
call fcn.0046ef68
push 0
push 0
lea eax, [ebp - 0x12cc]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpFindFirstFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4726a0
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x4727cb
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x12ac]
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 0x18], 0
jne 0x4726c6
cmp word [ebx + 0x142], 0
je 0x4727cb
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x12b8]
call fcn.0046ee9c
cmp word [ebx + 0x142], 0
je 0x472753
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x2d]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x144]
call dword [ebx + 0x140]
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 - 0x2d], 0
jne 0x4727bd
cmp byte [ebp + 0xc], 0
jne 0x472734
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
jmp 0x472d33
cmp byte [ebp - 0x3d], 0
je 0x472d33
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x472d33
fld qword [ebp - 0x38]
mov eax, dword [ebp + 0x14]
fcomp qword [eax]
fnstsw ax
sahf
ja 0x4727bd
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 0x47278b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
cmp word [ebx + 0x122], 0
je 0x472d33
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebx + 0x124]
call dword [ebx + 0x120]
jmp 0x472d33
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 [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 0x20]
call fcn.00404f54
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 0x47280f
cmp dword [ebp - 0x2c], 0
jne 0x47280f
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_FtpGetFileSize
mov dword [ebp - 0x2c], eax
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp - 0x14], 0
jne 0x47287a
cmp word [ebx + 0xd2], 0
je 0x47283c
mov ecx, dword [ebp + 0x24]
mov edx, ebx
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
cmp byte [ebp + 0xc], 0
jne 0x47285b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
jmp 0x472d33
cmp byte [ebp - 0x3d], 0
je 0x472d33
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x472d33
cmp dword [ebp + 0x1c], 0
je 0x47288d
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0x1c]
call fcn.00404b2c
jmp 0x472898
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0x24]
call fcn.0046ef68
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x20]
call fcn.0046f45c
mov edx, dword [ebp - 0x13fc]
lea eax, [ebp - 0x20]
call fcn.00404b2c
lea eax, [ebx + 0x68]
mov edx, dword [ebp - 0x20]
call fcn.00404ae8
lea eax, [ebx + 0x6c]
mov edx, dword [ebp + 0x20]
call fcn.00404ae8
mov eax, dword [ebp - 0x20]
call fcn.004093c4
test al, al
je 0x47297e
mov byte [ebp - 0x2d], 1
cmp word [ebx + 0xe2], 0
je 0x472900
lea eax, [ebp - 0x2d]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebx + 0xe4]
call dword [ebx + 0xe0]
cmp byte [ebp - 0x2d], 0
jne 0x47297e
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x47292e
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
jmp 0x472d33
cmp byte [ebp - 0x3d], 0
je 0x472d33
lea eax, [ebp - 0x1400]
lea edx, [ebp - 0x13cc]
mov ecx, pe_nt_image_headers32
call fcn.00404d04
cmp dword [ebp - 0x1400], 0
jne 0x472969
mov esi, 0x472e28
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 0x472d33
lea edx, [ebp - 0x1404]
mov eax, dword [ebp - 0x20]
call fcn.00409594
mov eax, dword [ebp - 0x1404]
call fcn.0046f530
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x118c]
call fcn.004031bc
mov edx, 1
lea eax, [ebp - 0x118c]
call fcn.0040364c
call fcn.00402ccc
test eax, eax
je 0x472a42
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x4729e5
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
cmp word [ebx + 0xa2], 0
je 0x472a02
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x472d33
lea eax, [ebp - 0x1408]
mov ecx, dword [ebp - 0x20]
mov edx, 0x472f30
call fcn.00404da0
mov eax, dword [ebp - 0x1408]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x472d33
mov dword [ebp - 0x1c], 0x1000
xor esi, esi
mov byte [ebx + 0x38], 0
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x1000
jmp 0x472cd4
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea eax, [ebp - 0x1c]
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 0x472ce4
cmp dword [ebp - 0x1c], 0
jbe 0x472aba
cmp dword [ebp - 0x1c], 0x1000
ja 0x472aba
push 0
lea edx, [ebp - 0x103d]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x118c]
call fcn.00403334
call fcn.00402c4c
add esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jbe 0x472b65
imul eax, esi, 0x64
mov dword [ebp - 0x1410], eax
xor eax, eax
mov dword [ebp - 0x140c], eax
fild qword [ebp - 0x1410]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1418], eax
xor eax, eax
mov dword [ebp - 0x1414], eax
fild qword [ebp - 0x1418]
fdivp st(1)
call fcn.00402f18
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.00438f04
push dword [ebx + 0x7c]
push 0x472de4
lea edx, [ebp - 0x1420]
mov eax, esi
call fcn.0046f02c
push dword [ebp - 0x1420]
push 0x472de4
push dword [ebx + 0xfc]
push 0x472de4
lea edx, [ebp - 0x1424]
mov eax, dword [ebp - 0x2c]
call fcn.0046f02c
push dword [ebp - 0x1424]
lea eax, [ebp - 0x141c]
mov edx, 7
call fcn.00404e14
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
jmp 0x472b9e
push dword [ebx + 0x7c]
push 0x472de4
lea edx, [ebp - 0x142c]
mov eax, esi
call fcn.0046f02c
push dword [ebp - 0x142c]
lea eax, [ebp - 0x1428]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1428]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
cmp word [ebx + 0xea], 0
je 0x472bbe
push esi
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebx + 0x10c], 0
je 0x472c14
push dword [ebx + 0x114]
push 0x472df0
mov eax, dword [ebx + 0x44]
call fcn.00438d54
lea edx, [ebp - 0x1434]
call fcn.00408eb0
push dword [ebp - 0x1434]
push 0x472f54
push dword [ebx + 0x110]
lea eax, [ebp - 0x1430]
mov edx, 5
call fcn.00404e14
mov edx, dword [ebp - 0x1430]
mov eax, dword [ebx + 0x3c]
call fcn.0044c614
push dword [ebx + 0x80]
push 0x472de4
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1410], eax
xor eax, eax
mov dword [ebp - 0x140c], eax
fild qword [ebp - 0x1410]
mov dword [ebp - 0x1418], esi
xor eax, eax
mov dword [ebp - 0x1414], eax
fild qword [ebp - 0x1418]
fdivrp st(1)
fmul dword [0x472f58]
call fcn.00402f18
lea edx, [ebp - 0x143c]
call fcn.0046f180
push dword [ebp - 0x143c]
lea eax, [ebp - 0x1438]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1438]
mov eax, dword [ebx + 0x50]
call fcn.0044c614
push dword [ebx + 0x84]
push 0x472de4
lea eax, [ebp - 0x1444]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, esi
call fcn.0046f2d4
push dword [ebp - 0x1444]
lea eax, [ebp - 0x1440]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1440]
mov eax, dword [ebx + 0x54]
call fcn.0044c614
cmp dword [ebp - 0x1c], 0
jbe 0x472ce4
cmp byte [ebx + 0x38], 0
je 0x472a63
lea eax, [ebp - 0x118c]
call fcn.00403354
call fcn.00402c4c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x472d19
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
jmp 0x472d2f
cmp byte [ebp - 0x3d], 0
je 0x472d2f
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 0x472dd0
lea eax, [ebp - 0x1444]
mov edx, 0xb
call fcn.00404ab8
lea eax, [ebp - 0x1408]
mov edx, 7
call fcn.00404ab8
lea eax, [ebp - 0x13ec]
call fcn.00404a94
lea eax, [ebp - 0x13e8]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp - 0x13e0]
call fcn.00404a94
lea eax, [ebp - 0x13dc]
mov edx, 4
call fcn.00404ab8
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp - 8]
call fcn.00404a94
lea eax, [ebp + 0x1c]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp + 0x2c]
mov edx, 2
call fcn.00404ab8
ret