Function at 0x403748
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, 0x4505f4
call fcn.0041b9a0
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.0040335d
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 [0x46a7b8]
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 0x469464
push eax
call fcn.00432c4d
add esp, 0xc
push ebx
push dword [0x469344]
push 0x46933c
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 0x4037e8
push 1
pop esi
jmp 0x403adf
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4037fb
push 2
jmp 0x4037e2
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 0x403829
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 0x403848
push 3
jmp 0x4037e2
cmp dword [ebp - 0x24], 0xc8
je 0x403855
push 4
jmp 0x4037e2
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
add eax, 0x10
push eax
call fcn.0043ca57
push 0x469454
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0043cdc5
lea ecx, [ebp - 0x48]
call fcn.0043d1d2
push ebx
push 0x1021
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0043d384
test eax, eax
jne 0x40389e
push 6
pop esi
jmp 0x403ac8
push str.Downloading...
mov ecx, esi
call fcn.00403afe
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 0x4038ef
lea ecx, [ebp - 0x48]
call fcn.0043d59f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 7
jmp 0x403898
cmp dword [ebp - 0x1c], ebx
je 0x403a2e
push dword [ebp - 0x1c]
lea eax, [ebp - 0x880]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.0043d4db
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 0x40399e
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.0041b9bf
add esp, 0x10
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0043ca57
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0x6d0]
push eax
mov byte [ebp - 4], 5
call fcn.00408469
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0043c9e9
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 0x4039ad
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 0x4039c5
mov dword [ebp - 0x14], ebx
push 0x64
pop eax
cmp dword [ebp - 0x14], eax
jle 0x4039d0
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 0x403a0a
xor eax, eax
cmp eax, 0x64
jle 0x403a12
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 0x4038bc
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x48]
mov dword [esi + 8], ebx
call fcn.0043d59f
push str.Decompress...
mov ecx, esi
call fcn.00403afe
mov esi, dword [ebp + 8]
lea edi, [esi + 0x10]
push edi
push dword [ebp - 0x18]
call fcn.004032a1
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
push dword [ebp - 0x18]
je 0x403a81
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp + 8]
jmp 0x403ac8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0xc], ebx
je 0x403ac6
add esi, 8
cmp dword [esi], ebx
je 0x403ac6
push ebx
push 0x41
push edi
lea ecx, [ebp - 0x48]
call fcn.0043d384
test eax, eax
jne 0x403ab2
push ebx
push ebx
push edi
call fcn.004421fe
push 9
jmp 0x403898
push esi
push esi
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x48]
call fcn.0043d59f
xor esi, esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0043d2c7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0043c9e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043c9e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4