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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1b95c
call fcn.0040ba60
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
mov eax, dword [ebx + 0xc]
push 0x425838
mov esi, 1
push 2
push eax
mov dword [esp + 0x20], esi
call edi
mov ecx, dword [ebx + 0xc]
push 4
push 0x42583c
push 3
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [ebx + 0x250], esi
mov dx, word [ebx + 0x20]
push 0
lea esi, [ebx + 0xf4]
push 0x8000000
lea eax, [ebx + 0x90]
push 1
push esi
lea ecx, [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x402b23
mov eax, dword [ebp + 8]
test eax, eax
je 0x402b23
mov ecx, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebx + 0x2c]
push 0x64
push eax
push 1
push ecx
call edi
mov edx, dword [ebx + 8]
lea eax, [ebx + 0x90]
push 0x64
push eax
push 2
push edx
call edi
mov eax, dword [ebx + 8]
push 0x64
push esi
push 3
push eax
call edi
mov edx, dword [ebx + 8]
lea ecx, [ebx + 0x158]
push 0x64
push ecx
push 4
push edx
call edi
mov ecx, dword [ebx + 8]
lea eax, [ebx + 0x1bc]
push 0x64
push eax
push 5
push ecx
call edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [ebx + 0x250], 8
mov dx, word [ebx + 0x20]
push 0
push 0x8000000
push 1
lea eax, [ebx + 0x90]
push esi
push eax
lea eax, [ebx + 0x2c]
push edx
push eax
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4030df
mov ecx, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff9
add ecx, 9
mov dword [ebx + 0x250], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
mov dword [ebx + 0x220], eax
mov dx, word [0x42f468]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebx + 0x158]
mov edi, 0x42f468
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x402ba0
test al, al
je 0x402b9a
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x402ba0
add esi, 2
add edi, 2
test al, al
jne 0x402b76
xor esi, esi
xor eax, eax
jmp 0x402ba7
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
je 0x402c29
lea eax, [ebx + 0x158]
mov ecx, ebx
push eax
call fcn.00403200
test eax, eax
je 0x402c29
lea edi, [ebx + 0x158]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f468
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
xor esi, esi
mov eax, dword [ebp + 8]
push 4
cmp eax, esi
je 0x402c64
mov edx, dword [ebx + 0x10]
push 0x425840
push 6
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, dword [ebx + 0x10]
push esi
push 2
lea eax, [ebx + 0x1bc]
push SysReAllocStringLen
push eax
push ecx
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [ebx + 0x14], eax
jmp 0x402d19
mov edx, dword [ebx + 0x10]
push 0x425844
push 5
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x104]
mov ecx, ebx
push eax
call fcn.00403110
lea edi, [esp + 0x104]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42f464
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.00403160
lea edx, [esp + 0x3c]
push 0x42f460
push edx
mov ecx, ebx
call fcn.00403160
lea eax, [esp + 0x3c]
push str.:___
push eax
mov ecx, ebx
call fcn.00403160
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xa0]
push ecx
push str._s.tmp
push edx
call fcn.0040b988
mov ecx, dword [ebx + 0x10]
add esp, 0xc
lea eax, [esp + 0xa0]
push 0
push 2
push 0x40000000
push eax
push ecx
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [ebx + 0x14], eax
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x4030af
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
cmp eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
je 0x402e5a
mov dword [ebx + 0x250], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x14]
lea edx, [esp + 0x2c]
mov edi, eax
push edx
lea eax, [esp + 0xc96c]
push 0xf000
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402fc2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, edi
mov ecx, dword [ebx + 0x224]
add edx, ecx
mov dword [ebx + 0x224], edx
mov edx, dword [ebx + 0x22c]
mov ecx, dword [esp + 0x2c]
add edx, ecx
mov dword [ebx + 0x22c], edx
xor edx, edx
cmp dword [ebx + 0x224], edx
je 0x402de1
mov edx, dword [ebx + 0x22c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
fmul qword [0x425820]
mov edx, dword [ebx + 0x224]
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
fdivp st(1)
fmul qword [0x425828]
fstp qword [ebx + 0x238]
sub eax, edi
mov edi, dword [esp + 0xc]
add esi, eax
add edi, ecx
cmp esi, 0x1f4
mov dword [esp + 0xc], edi
jb 0x402f8f
mov eax, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
fild qword [esp + 0x14]
mov dword [esp + 0x20], edx
fmul qword [0x425820]
fild qword [esp + 0x1c]
fdivp st(1)
fmul qword [0x425828]
fld qword [ebx + 0x240]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x402e3a
fst qword [ebx + 0x240]
fld qword [ebx + 0x248]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x402f87
fstp qword [ebx + 0x248]
jmp 0x402f89
mov dword [ebx + 0x250], 5
mov ecx, 0x3200
mov eax, 0x40404040
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 0x14]
mov edi, eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x168]
push eax
push 0x19000
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x403074
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, edi
mov edx, dword [ebx + 0x228]
add ecx, edx
mov dword [ebx + 0x228], ecx
mov edx, dword [ebx + 0x230]
mov ecx, dword [esp + 0x38]
add edx, ecx
mov dword [ebx + 0x230], edx
xor edx, edx
cmp dword [ebx + 0x228], edx
je 0x402f15
mov edx, dword [ebx + 0x230]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
fild qword [esp + 0x1c]
fmul qword [0x425820]
mov edx, dword [ebx + 0x228]
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
fdivp st(1)
fmul qword [0x425828]
fstp qword [ebx + 0x238]
sub eax, edi
mov edi, dword [esp + 0xc]
add esi, eax
add edi, ecx
cmp esi, 0x1f4
mov dword [esp + 0xc], edi
jb 0x403005
mov eax, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
fild qword [esp + 0x24]
mov dword [esp + 0x34], edx
fmul qword [0x425820]
fild qword [esp + 0x30]
fdivp st(1)
fmul qword [0x425828]
fld qword [ebx + 0x240]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x402f6e
fst qword [ebx + 0x240]
fld qword [ebx + 0x248]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x402ffd
fstp qword [ebx + 0x248]
jmp 0x402fff
fstp st(0)
xor esi, esi
mov dword [esp + 0xc], edx
mov ecx, dword [ebx + 0x224]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
jae 0x402fad
mov edx, dword [ebx + 0x22c]
mov eax, dword [ebx + 0x28]
cmp edx, eax
jb 0x402d43
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and al, 0xf9
add eax, 0xb
mov dword [ebx + 0x250], eax
jmp 0x40302d
mov dword [ebx + 0x250], 7
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x10]
xor edi, edi
push ecx
mov dword [ebx + 0x14], edi
call esi
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x10], edi
push edx
call esi
mov dword [ebx + 0xc], edi
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fstp st(0)
xor esi, esi
mov dword [esp + 0xc], edx
mov ecx, dword [ebx + 0x228]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
jae 0x403023
mov edx, dword [ebx + 0x230]
mov eax, dword [ebx + 0x28]
cmp edx, eax
jb 0x402e77
mov dword [ebx + 0x250], 6
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x14], edi
jne 0x403057
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0xa0]
push ecx
push edx
call dword [sym.imp.WININET.dll_FtpDeleteFileA]
mov eax, dword [ebx + 0x10]
push eax
call esi
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], edi
push ecx
call esi
mov dword [ebx + 0xc], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x250], 7
mov edx, dword [ebx + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [ebx + 0x10]
xor edi, edi
push eax
mov dword [ebx + 0x14], edi
call esi
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], edi
push ecx
call esi
mov dword [ebx + 0xc], edi
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x250], 7
mov edx, dword [ebx + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], esi
push eax
call edi
mov dword [ebx + 0xc], esi
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x250], 7
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov dword [ebx + 0xc], 0
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4