Function at 0x10042800
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100948db
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x948
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x8e4], 0
xor eax, eax
mov word [ebp - 0x464], ax
push 0x206
push 0
lea ecx, [ebp - 0x462]
push ecx
call fcn.1004f5f0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x25c], dx
push 0x206
push 0
lea eax, [ebp - 0x25a]
push eax
call fcn.1004f5f0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x8d4]
push ecx
call fcn.1004f5f0
add esp, 0xc
mov dword [ebp - 0x8d4], 0x3c
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x89c], 0
lea edx, [ebp - 0x464]
mov dword [ebp - 0x8c4], edx
mov dword [ebp - 0x8c0], 0x103
mov dword [ebp - 0x8b0], 0
mov dword [ebp - 0x8ac], 0
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8cc], 0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x8a8], eax
mov dword [ebp - 0x8a4], 0x103
lea ecx, [ebp - 0x8d4]
push ecx
push 0x80000000
mov ecx, dword [ebp + 0xc]
call fcn.1000e170
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1000e0f0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10042946
mov ecx, dword [ebp + 8]
call fcn.10013bd0
mov edx, dword [ebp - 0x8e4]
or edx, 1
mov dword [ebp - 0x8e4], edx
mov eax, dword [ebp + 8]
jmp 0x10042d76
mov dword [ebp - 0x8e8], 0
mov dword [ebp - 0x8ec], 0
mov dword [ebp - 0x8dc], 0
mov byte [ebp - 0x8d5], 1
lea ecx, [ebp - 0x88c]
call fcn.10013bd0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0
push 0
push 0
push 0
push str.ADFAD_GADT
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x8e8], eax
cmp dword [ebp - 0x8e8], 0
jne 0x100429d0
mov dword [ebp - 0x904], str.Internet_Open_Failed_
lea eax, [ebp - 0x904]
push eax
lea ecx, [ebp - 0x94c]
call fcn.1004b434
push 0x100ac610
lea ecx, [ebp - 0x94c]
push ecx
call fcn.1005229d
push 0
push 0
push 3
push 0x100a6e44
push 0x100a6e48
push 0
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x8e8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x8ec], eax
cmp dword [ebp - 0x8ec], 0
jne 0x10042a32
mov dword [ebp - 0x90c], str.Internet_Connect_Failed_
lea ecx, [ebp - 0x90c]
push ecx
lea ecx, [ebp - 0x934]
call fcn.1004b434
push 0x100ac610
lea edx, [ebp - 0x934]
push edx
call fcn.1005229d
push 0
push 0x80000100
push 0
push 0
push 0x100a6e68
lea eax, [ebp - 0x25c]
push eax
push 0x100a6e7c
mov ecx, dword [ebp - 0x8ec]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0
jne 0x10042a97
mov dword [ebp - 0x918], str.Http_Open_Failed_
lea edx, [ebp - 0x918]
push edx
lea ecx, [ebp - 0x940]
call fcn.1004b434
push 0x100ac610
lea eax, [ebp - 0x940]
push eax
call fcn.1005229d
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x8dc]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x910], eax
cmp dword [ebp - 0x910], 0
jne 0x10042ae8
mov dword [ebp - 0x8fc], str.Http_Send_Request_Failed_
lea edx, [ebp - 0x8fc]
push edx
lea ecx, [ebp - 0x958]
call fcn.1004b434
push 0x100ac610
lea eax, [ebp - 0x958]
push eax
call fcn.1005229d
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x870], 4
push 0
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x86c]
push edx
push 0x20000013
mov eax, dword [ebp - 0x8dc]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10042b5b
cmp dword [ebp - 0x86c], 0xc8
je 0x10042b5b
mov dword [ebp - 0x8f8], str.Http_response_Failed_
lea ecx, [ebp - 0x8f8]
push ecx
lea ecx, [ebp - 0x928]
call fcn.1004b434
push 0x100ac610
lea edx, [ebp - 0x928]
push edx
call fcn.1005229d
mov dword [ebp - 0x874], 0x40
push 0
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 5
mov edx, dword [ebp - 0x8dc]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x914], eax
mov dword [ebp - 0x8e0], 0
cmp dword [ebp - 0x914], 0
je 0x10042bae
lea eax, [ebp - 0x54]
push eax
call fcn.1004a75d
add esp, 4
mov dword [ebp - 0x8e0], eax
jmp 0x10042bb8
mov dword [ebp - 0x8e0], 0x400
mov dword [ebp - 0x8f0], 0
mov ecx, 1
test ecx, ecx
je 0x10042c9e
cmp dword [ebp - 0x8e0], 0x400
jb 0x10042be7
mov dword [ebp - 0x8f4], 0x400
jmp 0x10042bf3
mov edx, dword [ebp - 0x8e0]
mov dword [ebp - 0x8f4], edx
mov eax, dword [ebp - 0x8f4]
mov dword [ebp - 0x900], eax
lea ecx, [ebp - 0x868]
push ecx
mov edx, dword [ebp - 0x900]
push edx
lea eax, [ebp - 0x864]
push eax
mov ecx, dword [ebp - 0x8dc]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10042c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x908], eax
mov edx, dword [ebp - 0x908]
mov dword [ebp - 0x91c], edx
mov byte [ebp - 0x8d5], 0
jmp 0x10042c9e
mov eax, dword [ebp - 0x8f0]
add eax, dword [ebp - 0x868]
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8e0]
sub ecx, dword [ebp - 0x868]
mov dword [ebp - 0x8e0], ecx
cmp dword [ebp - 0x868], 0
jne 0x10042c75
jmp 0x10042c9e
mov edx, dword [ebp - 0x868]
push edx
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x88c]
call fcn.10014160
cmp dword [ebp - 0x8e0], 0
jg 0x10042c99
jmp 0x10042c9e
jmp 0x10042bc2
jmp 0x10042cb8
mov dword [ebp - 4], 0
jmp 0x10042cc8
cmp dword [ebp - 0x8dc], 0
je 0x10042cde
mov ecx, dword [ebp - 0x8dc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x8ec], 0
je 0x10042cf4
mov edx, dword [ebp - 0x8ec]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x8e8], 0
je 0x10042d0a
mov eax, dword [ebp - 0x8e8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
movzx ecx, byte [ebp - 0x8d5]
test ecx, ecx
je 0x10042d4a
lea edx, [ebp - 0x88c]
push edx
mov ecx, dword [ebp + 8]
call fcn.100100a0
mov eax, dword [ebp - 0x8e4]
or eax, 1
mov dword [ebp - 0x8e4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88c]
call fcn.1000df90
mov eax, dword [ebp + 8]
jmp 0x10042d76
mov ecx, dword [ebp + 8]
call fcn.10013bd0
mov ecx, dword [ebp - 0x8e4]
or ecx, 1
mov dword [ebp - 0x8e4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88c]
call fcn.1000df90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret