Function at 0x46860c
Capabilities:
Check for time delay via gettickcount
Connect to http server
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x289
push 0
push 0
dec ecx
jne 0x468615
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.004053c4
mov eax, dword [ebp + 0x30]
call fcn.004053c4
mov eax, dword [ebp + 0x2c]
call fcn.004053c4
mov eax, dword [ebp + 0x24]
call fcn.004053c4
mov eax, dword [ebp + 0x20]
call fcn.004053c4
mov eax, dword [ebp + 0x1c]
call fcn.004053c4
xor eax, eax
push ebp
push 0x4691a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov byte [esi], 0
mov byte [ebx + 0x38], 0
cmp byte [ebp + 8], 0
je 0x4687ba
mov eax, dword [ebx + 0xa0]
call fcn.00416484
dec eax
jle 0x4686f4
lea edx, [ebp - 0x13d4]
mov eax, dword [ebx + 0x34]
call fcn.00409140
push dword [ebp - 0x13d4]
push 0x4691c4
push dword [ebx + 0x10c]
push 0x4691c4
mov eax, dword [ebx + 0xa0]
call fcn.0046be38
lea edx, [ebp - 0x13d8]
call fcn.00409140
push dword [ebp - 0x13d8]
push 0x4691d0
lea eax, [ebp - 0x13d0]
mov edx, 6
call fcn.004052d8
mov edx, dword [ebp - 0x13d0]
mov eax, dword [ebx + 0x48]
call fcn.00440004
jmp 0x4686fe
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.00440004
cmp byte [ebx + 0x11e], 0
je 0x46876b
push dword [ebx + 0x7c]
push 0x4691c4
lea edx, [ebp - 0x13e0]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0043ffd4
push dword [ebp - 0x13e0]
lea edx, [ebp - 0x13e4]
mov eax, dword [ebp + 0x24]
call fcn.00464668
push dword [ebp - 0x13e4]
push 0x4691c4
push dword [ebx + 0x110]
push 0x4691c4
push dword [ebp + 0x2c]
lea eax, [ebp - 0x13dc]
mov edx, 8
call fcn.004052d8
mov edx, dword [ebp - 0x13dc]
mov eax, edi
call fcn.00440004
jmp 0x4687ba
push dword [ebx + 0x7c]
push 0x4691c4
lea edx, [ebp - 0x13ec]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0043ffd4
push dword [ebp - 0x13ec]
lea edx, [ebp - 0x13f0]
mov eax, dword [ebp + 0x24]
call fcn.00464668
push dword [ebp - 0x13f0]
lea eax, [ebp - 0x13e8]
mov edx, 4
call fcn.004052d8
mov edx, dword [ebp - 0x13e8]
mov eax, edi
call fcn.00440004
cmp byte [ebx + 0x11a], 0
je 0x4687ca
mov edi, 0x8000000
jmp 0x4687cc
xor edi, edi
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
push dword [ebp + 0x2c]
push dword [ebp - 4]
push dword [ebp + 0x30]
lea eax, [ebp - 0x13f4]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x13f4]
mov eax, dword [ebx + 0x160]
call fcn.0040536c
jne 0x46880f
mov eax, dword [ebx + 0x15c]
mov dword [ebp - 0x18], eax
jmp 0x468877
cmp dword [ebp - 4], 0
je 0x46881b
cmp dword [ebp + 0x30], 0
jne 0x468843
push 0
push edi
push 1
push 0
push 0
movzx eax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.004053d4
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x18], eax
jmp 0x468877
push 0
push edi
push 1
mov eax, dword [ebp + 0x30]
call fcn.004053d4
push eax
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
movzx eax, word [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
call fcn.004053d4
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4688da
cmp word [ebx + 0xaa], 0
je 0x46889a
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp word [ebx + 0xb2], 0
je 0x46911a
lea eax, [ebp - 0x13f8]
mov ecx, dword [ebp + 0x2c]
mov edx, 0x4691dc
call fcn.0040525c
mov eax, dword [ebp - 0x13f8]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
jmp 0x46911a
cmp byte [ebp + 0xc], 0
je 0x468902
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x15c], eax
push dword [ebp + 0x2c]
push dword [ebp - 4]
push dword [ebp + 0x30]
lea eax, [ebx + 0x160]
mov edx, 3
call fcn.004052d8
mov byte [ebp - 0x3d], 0
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
mov edx, dword [ebp + 0x24]
mov eax, 0x469204
call fcn.00405520
test eax, eax
jle 0x4689a2
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x24]
call fcn.00404fdc
jmp 0x468947
mov eax, dword [ebp - 0xc]
call fcn.00405204
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.0040547c
mov eax, dword [ebp - 0xc]
call fcn.00405204
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x2f
je 0x468965
mov eax, dword [ebp - 0xc]
call fcn.00405204
test eax, eax
jg 0x468930
mov eax, dword [ebp - 0xc]
call fcn.00405204
test eax, eax
jle 0x4689a2
mov dword [ebp - 0x3c], 0xff
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov byte [ebp - 0x3d], 1
mov eax, dword [ebp - 0xc]
call fcn.004053d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x24]
call fcn.00464668
push 0
push 0
lea eax, [ebp - 0x12cc]
push eax
mov eax, dword [ebp - 8]
call fcn.004053d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpFindFirstFileA
test eax, eax
jne 0x4689d8
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x468b01
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x12ac]
mov dword [ebp - 0x28], eax
cmp byte [ebp + 0x18], 0
jne 0x4689fb
cmp word [ebx + 0x152], 0
je 0x468b01
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x12b8]
call fcn.0046459c
cmp word [ebx + 0x152], 0
je 0x468a88
mov byte [ebp - 0x29], 1
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebx + 0x154]
call dword [ebx + 0x150]
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 0x468af3
cmp byte [ebp + 0xc], 0
jne 0x468a69
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
jmp 0x46911a
cmp byte [ebp - 0x3d], 0
je 0x46911a
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x46911a
fld qword [ebp - 0x38]
mov eax, dword [ebp + 0x14]
fcomp qword [eax]
wait
fnstsw ax
sahf
ja 0x468af3
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 0x468ac1
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
cmp word [ebx + 0x132], 0
je 0x46911a
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0x134]
call dword [ebx + 0x130]
jmp 0x46911a
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 [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.004053d4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpOpenFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x468b45
cmp dword [ebp - 0x28], 0
jne 0x468b45
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_FtpGetFileSize
mov dword [ebp - 0x28], eax
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp dword [ebp - 0x1c], 0
jne 0x468bb0
cmp word [ebx + 0xda], 0
je 0x468b72
mov ecx, dword [ebp + 0x24]
mov edx, ebx
mov eax, dword [ebx + 0xdc]
call dword [ebx + 0xd8]
cmp byte [ebp + 0xc], 0
jne 0x468b91
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
jmp 0x46911a
cmp byte [ebp - 0x3d], 0
je 0x46911a
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x46911a
cmp dword [ebp + 0x1c], 0
je 0x468bc3
lea eax, [ebp - 8]
mov edx, dword [ebp + 0x1c]
call fcn.00404fdc
jmp 0x468bce
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x24]
call fcn.00464668
lea ecx, [ebp - 0x13fc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x20]
call fcn.00464b60
mov edx, dword [ebp - 0x13fc]
lea eax, [ebp - 8]
call fcn.00404fdc
lea eax, [ebx + 0x6c]
mov edx, dword [ebp - 8]
call fcn.00404f98
lea eax, [ebx + 0x70]
mov edx, dword [ebp + 0x20]
call fcn.00404f98
mov eax, dword [ebp - 8]
call fcn.00409664
test al, al
je 0x468cd9
mov byte [ebp - 0x29], 1
cmp word [ebx + 0xea], 0
je 0x468c36
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebp - 0x29], 0
jne 0x468cb4
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x468c64
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
jmp 0x46911a
cmp byte [ebp - 0x3d], 0
je 0x46911a
lea eax, [ebp - 0x1400]
lea edx, [ebp - 0x13cc]
mov ecx, pe_nt_image_headers32
call fcn.004051b4
cmp dword [ebp - 0x1400], 0
jne 0x468c9f
mov esi, 0x469208
lea edi, [ebp - 0x13cc]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
jmp 0x46911a
cmp byte [ebx + 0x178], 0
je 0x468cd9
lea edx, [ebp - 0x1404]
mov eax, dword [ebp - 8]
call fcn.00465bbc
mov edx, dword [ebp - 0x1404]
lea eax, [ebp - 8]
call fcn.00404fdc
lea edx, [ebp - 0x1408]
mov eax, dword [ebp - 8]
call fcn.00409a10
mov eax, dword [ebp - 0x1408]
call fcn.00464c34
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x118c]
call fcn.004035cc
mov edx, 1
lea eax, [ebp - 0x118c]
call fcn.00403adc
call fcn.00403094
test eax, eax
je 0x468d9d
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x468d40
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
cmp word [ebx + 0xaa], 0
je 0x468d5d
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp word [ebx + 0xb2], 0
je 0x46911a
lea eax, [ebp - 0x140c]
mov ecx, dword [ebp - 8]
mov edx, 0x469310
call fcn.0040525c
mov eax, dword [ebp - 0x140c]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
jmp 0x46911a
mov dword [ebp - 0x20], 0x1000
xor esi, esi
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x1000
jmp 0x4690bb
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
lea eax, [ebp - 0x20]
push eax
push 0x1000
lea eax, [ebp - 0x103d]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4690cb
cmp dword [ebp - 0x20], 0
jbe 0x468e11
cmp dword [ebp - 0x20], 0x1000
ja 0x468e11
push 0
lea edx, [ebp - 0x103d]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x118c]
call fcn.00403748
call fcn.00403014
add esi, dword [ebp - 0x20]
cmp dword [ebp - 0x28], 0
jbe 0x468ec2
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 [0x46932c]
call fcn.00403328
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.004620b8
push dword [ebx + 0x80]
push 0x4691c4
lea edx, [ebp - 0x1424]
mov eax, esi
call fcn.0046472c
push dword [ebp - 0x1424]
push 0x4691c4
push dword [ebx + 0x10c]
push 0x4691c4
lea edx, [ebp - 0x1428]
mov eax, dword [ebp - 0x28]
call fcn.0046472c
push dword [ebp - 0x1428]
lea eax, [ebp - 0x1420]
mov edx, 7
call fcn.004052d8
mov edx, dword [ebp - 0x1420]
mov eax, dword [ebx + 0x4c]
call fcn.00440004
jmp 0x468efe
push dword [ebx + 0x80]
push 0x4691c4
lea edx, [ebp - 0x1430]
mov eax, esi
call fcn.0046472c
push dword [ebp - 0x1430]
lea eax, [ebp - 0x142c]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x142c]
mov eax, dword [ebx + 0x4c]
call fcn.00440004
cmp byte [ebx + 0x11d], 0
je 0x468f54
push dword [ebx + 0x124]
push 0x4691d0
mov eax, dword [ebx + 0x44]
call fcn.00461f08
lea edx, [ebp - 0x1438]
call fcn.00409140
push dword [ebp - 0x1438]
push 0x469338
push dword [ebx + 0x120]
lea eax, [ebp - 0x1434]
mov edx, 5
call fcn.004052d8
mov edx, dword [ebp - 0x1434]
mov eax, dword [ebx + 0x3c]
call fcn.00440004
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 [0x46933c]
call fcn.00403328
lea edx, [ebp - 0x143c]
call fcn.00464880
mov edx, dword [ebp - 0x143c]
lea eax, [ebx + 0x16c]
call fcn.00404f98
push dword [ebx + 0x84]
push 0x4691c4
push dword [ebx + 0x16c]
lea eax, [ebp - 0x1440]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x1440]
mov eax, dword [ebx + 0x50]
call fcn.00440004
lea eax, [ebp - 0x1444]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.004649d4
mov edx, dword [ebp - 0x1444]
lea eax, [ebx + 0x170]
call fcn.00404f98
push dword [ebx + 0x88]
push 0x4691c4
push dword [ebx + 0x170]
lea eax, [ebp - 0x1448]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x1448]
mov eax, dword [ebx + 0x54]
call fcn.00440004
lea eax, [ebp - 0x144c]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.004649d4
mov edx, dword [ebp - 0x144c]
lea eax, [ebx + 0x174]
call fcn.00404f98
push dword [ebx + 0x8c]
push 0x4691c4
push dword [ebx + 0x174]
lea eax, [ebp - 0x1450]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x1450]
mov eax, dword [ebx + 0x58]
call fcn.00440004
cmp word [ebx + 0xf2], 0
je 0x4690af
push esi
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xf4]
call dword [ebx + 0xf0]
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp dword [ebp - 0x20], 0
jbe 0x4690cb
cmp byte [ebx + 0x38], 0
je 0x468dba
lea eax, [ebp - 0x118c]
call fcn.00403768
call fcn.00403014
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 0xc], 0
jne 0x469100
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
jmp 0x469116
cmp byte [ebp - 0x3d], 0
je 0x469116
lea eax, [ebp - 0x13cc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4691af
lea eax, [ebp - 0x1450]
mov edx, 0xd
call fcn.00404f68
lea eax, [ebp - 0x140c]
mov edx, 8
call fcn.00404f68
lea eax, [ebp - 0x13ec]
call fcn.00404f44
lea eax, [ebp - 0x13e8]
mov edx, 2
call fcn.00404f68
lea eax, [ebp - 0x13e0]
call fcn.00404f44
lea eax, [ebp - 0x13dc]
mov edx, 4
call fcn.00404f68
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f68
lea eax, [ebp + 0x1c]
mov edx, 3
call fcn.00404f68
lea eax, [ebp + 0x2c]
mov edx, 2
call fcn.00404f68
ret