Function at 0x41a020
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x473341
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x4878d4]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4878d4]
xor eax, esp
push eax
lea eax, [esp + 0x65c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x66c]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x38], eax
call fcn.0041d9a0
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov ecx, str.http:__index.ttkvod.com__sindex_uplistn
mov dword [esp + 0x668], ebx
call fcn.004040c0
mov byte [esp + 0x664], 1
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00404cf0
lea ecx, [esp + 0x28]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0040efd0
mov byte [esp + 0x664], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00404fe0
mov byte [esp + 0x664], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a0f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, str.TTKVOD_CUSTOM_HTTP_HEADER:3.0
lea edx, [eax + 2]
jmp 0x41a100
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a100
push ebx
push ebx
push ebx
sub eax, edx
push ebx
sar eax, 1
push str.ttkvod
mov ebp, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
jne 0x41a17f
mov byte [esp + 0x664], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a14d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41a38c
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x24]
push ecx
push 2
push esi
mov dword [esp + 0x30], 0x7d0
call edi
push 4
lea edx, [esp + 0x24]
push edx
push 5
push esi
call edi
push 4
lea eax, [esp + 0x24]
push eax
push 6
push esi
call edi
push 4
lea ecx, [esp + 0x24]
push ecx
push 7
push esi
call edi
push 4
lea edx, [esp + 0x24]
push edx
push 8
push esi
call edi
mov eax, dword [esp + 0x18]
push ebx
push SysReAllocString
push ebp
push str.TTKVOD_CUSTOM_HTTP_HEADER:3.0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x41a1fa
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41a126
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push ebx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x44a], eax
mov dword [esp + 0x44e], eax
mov dword [esp + 0x452], eax
mov dword [esp + 0x456], eax
mov word [esp + 0x45a], ax
lea eax, [esp + 0x448]
push eax
push 0x13
xor ecx, ecx
push edi
mov word [esp + 0x454], cx
mov dword [esp + 0x4c], 0x14
call ebp
lea ecx, [esp + 0x440]
push ecx
call fcn.0045b2b4
add esp, 4
cmp eax, 0xc8
jne 0x41a32a
push 0x3fc
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x48], ebx
call fcn.0045cac0
add esp, 0xc
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push 5
push edi
mov dword [esp + 0x44], pe_nt_image_headers32
call ebp
test eax, eax
je 0x41a32a
push 0x1fe
lea eax, [esp + 0x45a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x460], dx
call fcn.0045cac0
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x458]
push 0x47c170
push edx
call fcn.0045b2d5
lea eax, [esp + 0x460]
add esp, 0xc
push eax
call fcn.0045b2b4
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x41a32a
push eax
call fcn.00459cc6
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebx
cmp ebp, ebx
jne 0x41a305
push ebx
jmp 0x41a322
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push edx
push ebp
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x28]
je 0x41a33b
push ebp
call fcn.00459cd1
add esp, 4
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
jmp 0x41a126
mov edx, dword [esp + 0x34]
mov ecx, ebp
call fcn.00419680
cmp eax, ebx
jne 0x41a360
lea ecx, [esp + 0x18]
call fcn.00404200
lea eax, [esp + 0x1c]
call fcn.004048d0
xor eax, eax
jmp 0x41a38c
push ebp
call fcn.00459cd1
add esp, 4
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
lea ecx, [esp + 0x18]
call fcn.00404200
lea eax, [esp + 0x1c]
call fcn.004048d0
mov eax, 1
mov ecx, dword [esp + 0x65c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.004599ea
add esp, 0x654
ret 4