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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4472c3
mov eax, dword fs:[0]
push eax
sub esp, 0xfd4
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0xfd8], edi
mov dword [ebp - 4], edi
xor esi, esi
mov eax, 0x44e940
lea ecx, [ebp - 0xfd0]
mov dword [ebp - 0xfbc], 0xf
mov dword [ebp - 0xfc0], edi
mov byte [ebp - 0xfd0], 0
call fcn.00402560
push edi
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xfd8], eax
cmp eax, edi
jne 0x4010e6
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0xfd0]
mov esi, ebx
mov byte [ebx], 0
call fcn.00402170
cmp dword [ebp - 0xfbc], 0x10
jb 0x4010ac
mov eax, dword [ebp - 0xfd0]
push eax
call fcn.00430f33
add esp, 4
mov dword [ebp - 0xfbc], 0xf
mov dword [ebp - 0xfc0], 0
mov byte [ebp - 0xfd0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40128f
mov ecx, dword [ebp + 8]
push edi
push 0x84000000
push edi
push edi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, edi
jne 0x40112e
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0xfd0]
mov esi, ebx
mov byte [ebx], 0
call fcn.00402170
cmp dword [ebp - 0xfbc], 0x10
jb 0x4010ac
mov edx, dword [ebp - 0xfd0]
push edx
jmp 0x4010a4
push edi
lea ecx, [ebp - 0xfe0]
push ecx
lea edx, [ebp - 0xfdc]
push edx
push 0x20000013
push esi
mov dword [ebp - 0xfdc], edi
mov dword [ebp - 0xfe0], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40107a
cmp dword [ebp - 0xfdc], 0x190
jb 0x401193
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0xfd0]
mov esi, ebx
mov byte [ebx], 0
call fcn.00402170
mov esi, edi
call fcn.00402630
jmp 0x4010c7
push 0xfa0
lea ecx, [ebp - 0xfb3]
push edi
push ecx
mov byte [ebp - 0xfb4], 0
call fcn.00433910
add esp, 0xc
lea edx, [ebp - 0xfd4]
push edx
push 0xfa0
lea eax, [ebp - 0xfb4]
push eax
push esi
mov dword [ebp - 0xfd4], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0xfd4], edi
je 0x401242
jmp 0x4011e0
lea eax, [ebp - 0xfb4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011f0
sub eax, edx
push eax
lea eax, [ebp - 0xfb4]
lea ecx, [ebp - 0xfd0]
call fcn.00401820
push 0xfa1
lea ecx, [ebp - 0xfb4]
push edi
push ecx
call fcn.00433910
add esp, 0xc
lea edx, [ebp - 0xfd4]
push edx
push 0xfa0
lea eax, [ebp - 0xfb4]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0xfd4], edi
jne 0x4011e0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0xfd8]
push ecx
call esi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0xfd0]
mov esi, ebx
mov byte [ebx], 0
call fcn.00402170
mov esi, edi
call fcn.00402630
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40129b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret