Function at 0x42a420
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bf6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10054
call fcn.0043c2b0
push ebx
push esi
push edi
push 0x12
mov ebx, ecx
xor esi, esi
push str.Sending_request:
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.00401ab0
push 0xffffffffffffffff
push esi
mov dword [esp + 0x10074], esi
mov esi, dword [ebp + 8]
push esi
lea ecx, [esp + 0x2c]
call fcn.0040b9c0
lea edi, [ebx + 0x2dc]
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0040bcc0
push esi
mov ecx, ebx
call fcn.00418ba0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x42a4c8
cmp dword [esp + 0x38], 0x10
jb 0x42a728
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043c389
add esp, 4
jmp 0x42a728
push 0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0x20000013
push eax
mov dword [esp + 0x50], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x42a533
push str.ERROR:_HttpQueryInfo_returns_FALSE._Cant_determinet_HTTP_status_code.
mov ecx, edi
call fcn.0040c2e0
mov al, byte [ebp + 0xc]
test al, al
je 0x42a516
push 0x4592ec
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0xfffffff5
call fcn.0043c34f
cmp dword [esp + 0x38], 0x10
jb 0x42a728
mov eax, dword [esp + 0x24]
push eax
call fcn.0043c389
add esp, 4
jmp 0x42a728
cmp dword [esp + 0x18], 0xc8
je 0x42a5c6
push 0x18
push str.ERROR:_HTTP_status_code
lea ecx, [esp + 0x28]
call fcn.00401ab0
mov edx, dword [esp + 0x18]
push 0xa
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.0043d549
lea eax, [esp + 0x4c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a570
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
call fcn.0040bab0
push 1
push 0x44f474
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0040bcc0
mov al, byte [ebp + 0xc]
test al, al
je 0x42a71f
push 0x4592ec
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xfffffff5
push edx
jmp 0x42a659
xor eax, eax
mov ecx, 0x3fff
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
mov dword [esp + 0x1c], 0xffff
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov ecx, 0xffff
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x68]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
add edx, ecx
test eax, eax
mov dword [esp + 0xc], edx
je 0x42a623
test ecx, ecx
je 0x42a65e
add esi, ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a5e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x42a619
mov ecx, dword [esp + 0x10]
push str.ERROR:_InternetReadFile_returns__Handle_is_invalid_.
call fcn.0040c2e0
mov al, byte [ebp + 0xc]
test al, al
je 0x42a71f
push 0x4592ec
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0xfffffff5
push ecx
call fcn.0043c34f
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov byte [esp + eax + 0x60], 0
mov al, byte [ebx + 0x2c0]
test al, al
je 0x42a699
push str.Raw__unparsed__server_response:_r_n
mov ecx, esi
call fcn.0040c2e0
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.0040c2e0
push str.End_of_raw_server_response._r_n
mov ecx, esi
call fcn.0040c2e0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edi, [ebx + 0x94]
push edi
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
call fcn.00429830
mov al, byte [ebx + 0x2c0]
test al, al
je 0x42a6f2
push str.Server_response__parsed_:
mov ecx, esi
call fcn.0040c2e0
mov eax, dword [ebx + 0x9c]
xor esi, esi
test eax, eax
jle 0x42a6f2
push esi
mov ecx, edi
call fcn.00418180
mov ecx, dword [esp + 0x10]
push eax
call fcn.0040bcc0
mov eax, dword [ebx + 0x9c]
inc esi
cmp esi, eax
jl 0x42a6d5
cmp dword [esp + 0x38], 0x10
jb 0x42a706
mov eax, dword [esp + 0x24]
push eax
call fcn.0043c389
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x10064]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x20]
call fcn.00401850
mov ecx, dword [esp + 0x10064]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8