Function at 0x40375d
Capabilities:
Check for time delay via gettickcount
Check http status code
Delete file
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x450614
call fcn.0041b9c0
sub esp, 0x874
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [eax + 4]
mov esi, ecx
lea ecx, [eax + 0x114]
push dword [esi + 0x18]
mov edi, dword [esi + 0x14]
push ecx
push str._s___d_th____dbytes
call fcn.00403372
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push 0x402
push dword [edi + 0x5d0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x46a7c8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
add eax, 0x114
push eax
lea eax, [ebp - 0x28]
push 0x469484
push eax
call fcn.00432c6d
add esp, 0xc
push ebx
push dword [0x469364]
push 0x46935c
push ebx
push str.HTTP_1.1
push dword [ebp - 0x28]
push ebx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x4037fd
push 1
pop esi
jmp 0x403af4
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403810
push 2
jmp 0x4037f7
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
push dword [esi + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40383e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40385d
push 3
jmp 0x4037f7
cmp dword [ebp - 0x24], 0xc8
je 0x40386a
push 4
jmp 0x4037f7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
add eax, 0x10
push eax
call fcn.0043ca77
push 0x469474
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0043cde5
lea ecx, [ebp - 0x48]
call fcn.0043d1f2
push ebx
push 0x1021
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0043d3a4
test eax, eax
jne 0x4038b3
push 6
pop esi
jmp 0x403add
push str.Downloading...
mov ecx, esi
call fcn.00403b13
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x800
push eax
lea eax, [ebp - 0x880]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403904
lea ecx, [ebp - 0x48]
call fcn.0043d5bf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 7
jmp 0x4038ad
cmp dword [ebp - 0x1c], ebx
je 0x403a43
push dword [ebp - 0x1c]
lea eax, [ebp - 0x880]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.0043d4fb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
add dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
sub eax, dword [ebp - 0x30]
cmp eax, 0x64
jbe 0x4039b3
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x34]
fild qword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
fild qword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
push ecx
push ecx
fsubp st(1)
fild qword [ebp - 0x60]
lea eax, [ebp - 0x80]
fdivp st(1)
fstp qword [esp]
push str._4.1fKB_Sec
push eax
call fcn.0041b9df
add esp, 0x10
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0043ca77
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0x6d0]
push eax
mov byte [ebp - 4], 5
call fcn.0040847e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0043ca09
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ebx
jne 0x4039c2
mov dword [eax + 4], 1
push dword [eax + 4]
push 0x64
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x4039da
mov dword [ebp - 0x14], ebx
push 0x64
pop eax
cmp dword [ebp - 0x14], eax
jle 0x4039e5
mov dword [ebp - 0x14], eax
push ebx
push dword [ebp - 0x14]
push 0x402
push dword [edi + 0x5d0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10c]
imul eax, eax, 0x64
push eax
mov eax, dword [esi + 0x18]
imul eax, eax, 0x64
add eax, dword [ebp - 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, ebx
jge 0x403a1f
xor eax, eax
cmp eax, 0x64
jle 0x403a27
push 0x64
pop eax
push ebx
push eax
push 0x402
push dword [edi + 0x60c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x1c], ebx
jne 0x4038d1
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x48]
mov dword [esi + 8], ebx
call fcn.0043d5bf
push str.Decompress...
mov ecx, esi
call fcn.00403b13
mov esi, dword [ebp + 8]
lea edi, [esi + 0x10]
push edi
push dword [ebp - 0x18]
call fcn.004032b6
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
push dword [ebp - 0x18]
je 0x403a96
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp + 8]
jmp 0x403add
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0xc], ebx
je 0x403adb
add esi, 8
cmp dword [esi], ebx
je 0x403adb
push ebx
push 0x41
push edi
lea ecx, [ebp - 0x48]
call fcn.0043d3a4
test eax, eax
jne 0x403ac7
push ebx
push ebx
push edi
call fcn.0044221e
push 9
jmp 0x4038ad
push esi
push esi
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x48]
call fcn.0043d5bf
xor esi, esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0043d2e7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0043ca09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043ca09
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4