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

Disassembly:
mov eax, 0x42de74
call fcn.004279d0
sub esp, 0x158
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
push ebx
mov eax, dword [esi + 0x120]
or dword [esi + 0x100], 0xffffffff
push ebx
push ebx
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x114], eax
jne 0x401f53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 1
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.004024c3
push 1
jmp 0x402112
cmp byte [esi + 8], bl
jne 0x402107
push 0x402369
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
je 0x401f37
cmp byte [esi + 8], bl
jne 0x402107
mov cx, word [esi + 0x28]
mov eax, dword [esi + 0x1c]
push esi
push ebx
push 3
push ebx
push ebx
push ecx
push eax
push dword [esi + 0x114]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x118], eax
jne 0x401fb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x110], eax
push 2
mov ecx, esi
call fcn.004024c3
push 2
jmp 0x402112
cmp byte [esi + 8], bl
jne 0x402107
mov ecx, dword [esi + 0x20]
push esi
lea edx, [ebp - 0x50]
push 0x84400100
push edx
push ebx
push ebx
push ecx
push ebx
push eax
mov dword [ebp - 0x50], 0x43e130
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0x11c], eax
je 0x401f9b
cmp byte [esi + 8], bl
jne 0x402107
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp - 0x20]
push 4
push eax
push 2
mov dword [ebp - 0x20], 0x1770
push dword [esi + 0x114]
mov dword [ebp - 0x34], ebx
call edi
lea eax, [ebp - 0x20]
push 4
push eax
push 6
push dword [esi + 0x114]
call edi
lea eax, [ebp - 0x20]
push 4
push eax
push 5
push dword [esi + 0x114]
call edi
lea eax, [ebp - 0x34]
push 4
push eax
push 3
push dword [esi + 0x114]
call edi
lea eax, [ebp - 0x64]
push eax
push ebx
push esi
push 0x401eaf
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
push eax
call edi
cmp eax, 0x102
jne 0x402093
mov ecx, esi
call fcn.00401cdf
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call edi
push 6
mov ecx, esi
mov dword [esi + 0x110], 0x2ee2
call fcn.004024c3
push 6
jmp 0x402112
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x401fa7
cmp byte [esi + 8], bl
jne 0x402107
lea edi, [esi + 0xfc]
mov ecx, esi
push edi
push dword [esi + 0x11c]
mov dword [edi], ebx
call fcn.0040244b
test al, al
jne 0x4020ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 3
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.004024c3
push 3
jmp 0x402112
cmp dword [edi], 0xc8
je 0x402102
push 5
mov ecx, esi
call fcn.004024c3
push 5
jmp 0x402112
cmp byte [esi + 8], bl
je 0x40211e
push 0xd
mov ecx, esi
call fcn.004024c3
push 0xd
mov ecx, esi
call fcn.004024a6
jmp 0x40235a
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push dword [esi + 0x11c]
call fcn.0040245d
test al, al
je 0x40213c
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x100], eax
lea eax, [esi + 0x3c]
mov ecx, esi
push eax
push dword [esi + 0x11c]
call fcn.0040246f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edi, edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x11], bl
call fcn.00427482
cmp byte [esi + 0x39], bl
mov dword [ebp - 4], ebx
je 0x40218d
mov eax, dword [esi + 0x2c]
push ebx
push 0x1001
push eax
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::Open
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x11], al
cmp byte [esi + 0x3a], bl
mov dword [ebp - 0x48], ebx
je 0x4021b3
lea edi, [esi + 0x34]
push edi
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [edi]
push ebx
xor eax, eax
push ebx
mov ecx, dword [edi]
push ebx
push eax
push edi
call dword [ecx + 0x14]
mov edi, dword [ebp - 0x1c]
push 0x100
lea eax, [ebp - 0x164]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x164]
push 0xff
push eax
push dword [esi + 0x11c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402204
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 4
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.004024c3
push 4
jmp 0x402347
cmp dword [ebp - 0x18], ebx
je 0x4022eb
cmp byte [esi + 8], bl
jne 0x4022eb
cmp byte [ebp - 0x11], bl
mov byte [ebp - 4], 1
je 0x402231
push dword [ebp - 0x18]
lea eax, [ebp - 0x164]
lea ecx, [ebp - 0x44]
push eax
call sub.MFC42.DLL_CFile::Write
cmp byte [esi + 0x38], bl
mov dword [ebp - 4], ebx
je 0x402248
lea eax, [ebp - 0x164]
lea ecx, [esi + 0x30]
push eax
call fcn.00427470
cmp byte [esi + 0x3a], bl
je 0x402264
mov eax, dword [esi + 0x34]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x164]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
fld qword [esi + 0x108]
fcomp qword [0x432978]
fnstsw ax
sahf
jbe 0x4022eb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], eax
fild qword [ebp - 0x58]
fild qword [ebp - 0x60]
fdiv st(1)
fcom qword [esi + 0x108]
fnstsw ax
sahf
jbe 0x4022e7
fmul st(1)
fdiv qword [esi + 0x108]
fsub st(1)
call sub.MSVCRT.dll__ftol
push eax
fstp st(0)
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4022eb
fstp st(0)
fstp st(0)
add edi, dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
je 0x4022fc
cmp byte [esi + 8], bl
je 0x4021b3
cmp byte [esi + 8], bl
mov dword [esi + 0x100], edi
je 0x402314
push 0xd
mov ecx, esi
call fcn.004024c3
push 0xd
jmp 0x402347
cmp byte [esi + 0x3a], bl
je 0x402328
mov eax, dword [esi + 0x34]
push ebx
xor ecx, ecx
push ebx
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x14]
cmp byte [ebp - 0x11], bl
je 0x402335
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::Close
mov ecx, esi
call fcn.00401cdf
push 0xc
mov ecx, esi
call fcn.004024c3
push 0xc
mov ecx, esi
call fcn.004024a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret