Function at 0x405b4c
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, 0x4664ab
call fcn.00425140
sub esp, 0x864
mov eax, dword [0x48ae20]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x10], esp
xor edi, edi
lea ecx, [eax + 0x62c]
push edi
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x844], eax
call fcn.004024ff
call fcn.0044501a
push eax
lea ecx, [ebp - 0x854]
call fcn.00402aaf
lea eax, [ebx + 0x114]
push eax
lea eax, [ebp - 0x854]
push 0x46a7a0
push eax
mov dword [ebp - 4], edi
call fcn.00403cb8
add esp, 0xc
push edi
push dword [0x488134]
push 0x48812c
push edi
push str.HTTP_1.1
push dword [ebp - 0x854]
push edi
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x405bec
inc edi
jmp 0x405fa2
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x405c03
push 2
pop edi
jmp 0x405fa2
push edi
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x84c]
push eax
push 0x20000005
push dword [esi + 8]
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x85c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405c3d
mov eax, dword [ebp - 0x84c]
mov dword [ebx + 4], eax
push edi
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x84c]
push eax
push 0x20000013
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x405c62
push 3
jmp 0x405bfd
cmp dword [ebp - 0x84c], 0xc8
je 0x405c72
push 4
jmp 0x405bfd
add ebx, 0x10
push ebx
lea ecx, [ebp - 0x83c]
call fcn.00403163
push 0x46a790
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 1
call fcn.004059cc
lea ecx, [ebp - 0x870]
call fcn.00445bfe
push edi
push 0x1021
push dword [ebp - 0x83c]
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 2
call fcn.00445f56
test eax, eax
jne 0x405cc7
push 6
pop edi
jmp 0x405f85
push 0x46a780
mov ecx, esi
call fcn.00405a6d
mov dword [ebp - 0x840], edi
xor ebx, ebx
mov dword [ebp - 0x848], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x840]
push eax
mov eax, 0x800
push eax
lea eax, [ebp - 0x834]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405d29
lea ecx, [ebp - 0x870]
call fcn.00445b9c
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 7
jmp 0x405cc1
cmp dword [ebp - 0x840], edi
je 0x405eda
push dword [ebp - 0x840]
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 3
call fcn.0044594c
add ebx, dword [ebp - 0x840]
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x838], eax
sub eax, dword [ebp - 0x858]
cmp eax, 0x64
jbe 0x405e36
test ebx, ebx
mov dword [ebp - 0x858], ebx
fild dword [ebp - 0x858]
jge 0x405d8f
fadd qword [0x46a778]
mov ecx, dword [ebp - 0x848]
fild dword [ebp - 0x848]
test ecx, ecx
jge 0x405da5
fadd qword [0x46a778]
test eax, eax
fsubp st(1)
mov dword [ebp - 0x848], eax
fild dword [ebp - 0x848]
jge 0x405dbd
fadd qword [0x46a778]
fdivp st(1)
push ecx
push ecx
lea eax, [ebp - 0x34]
fstp qword [esp]
push str._4.1fKb_sec
push eax
call fcn.004241a8
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x860]
call fcn.00403163
mov ecx, dword [ebp - 0x844]
lea eax, [ebp - 0x860]
add ecx, 0x784
push eax
mov byte [ebp - 4], 5
call fcn.0040dc5a
mov ecx, dword [ebp - 0x860]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040234d
mov ecx, dword [ebp - 0x844]
push edi
add ecx, 0x784
call fcn.0040dc71
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x848], ebx
mov eax, dword [ebp - 0x850]
cmp dword [eax + 4], edi
jne 0x405e48
mov dword [eax + 4], 1
push dword [eax + 4]
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, edi
mov dword [ebp - 0x838], eax
jge 0x405e64
mov dword [ebp - 0x838], edi
push 0x64
pop eax
cmp dword [ebp - 0x838], eax
jle 0x405e75
mov dword [ebp - 0x838], eax
mov ecx, dword [ebp - 0x844]
push dword [ebp - 0x838]
add ecx, 0x62c
call fcn.004024ff
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x10c]
imul eax, eax, 0x64
push eax
mov eax, dword [esi + 0x1c]
imul eax, eax, 0x64
add eax, dword [ebp - 0x838]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, edi
jge 0x405eb4
xor eax, eax
cmp eax, 0x64
jle 0x405ebc
push 0x64
pop eax
mov ecx, dword [ebp - 0x844]
push eax
add ecx, 0x67c
call fcn.004024ff
cmp dword [ebp - 0x840], edi
jne 0x405ced
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x870]
mov dword [esi + 8], edi
call fcn.00445b9c
push 0x46a75c
mov ecx, esi
call fcn.00405a6d
mov esi, dword [ebp - 0x850]
lea ebx, [esi + 0x10]
push ebx
push dword [ebp - 0x83c]
call fcn.0040554f
cmp eax, edi
pop ecx
pop ecx
push dword [ebp - 0x83c]
mov dword [ebp - 0x850], eax
je 0x405f3f
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x850]
jmp 0x405f85
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0xc], edi
je 0x405f85
add esi, 8
cmp dword [esi], edi
je 0x405f85
push edi
push 0x41
push ebx
lea ecx, [ebp - 0x870]
call fcn.00445f56
test eax, eax
jne 0x405f6b
push 9
jmp 0x405cc1
push esi
push esi
push esi
push dword [ebp - 0x86c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x870]
call fcn.00445b9c
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
call fcn.00445c3d
mov ecx, dword [ebp - 0x83c]
add ecx, 0xfffffff0
call fcn.0040234d
mov ecx, dword [ebp - 0x854]
add ecx, 0xfffffff0
call fcn.0040234d
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424262
leave
ret 4