Function at 0x425c20
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516012
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x56e754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x238]
mov edx, 0x574a40
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [ebp - 0x22c], ebx
call fcn.004397a0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [eax]
push str.Opening_internet_stream__url:__s_
push 1
call fcn.0041eb40
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x22c], ecx
test ecx, ecx
je 0x425d09
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x425d09
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x22c]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x425d09
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push ebx
mov dword [esi + 0x10], 0
call fcn.00425a60
test al, al
jne 0x425d34
mov edx, ebx
mov ecx, str.Unable_to_get_create_session_for_url__url:__s_
call fcn.0042e1a0
jmp 0x425fac
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x18]
push 0x545750
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x425d68
mov edx, ebx
mov ecx, str.Unable_to_open_stream_GET_request__url:__s_
call fcn.0042e1a0
jmp 0x425fac
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x425db9
lea ecx, [ebp - 0x228]
call fcn.00424730
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x425d99
mov eax, dword [eax]
mov ecx, str.Unable_to_send_stream_GET_request__url:__s__error:__s_
push eax
mov edx, ebx
call fcn.0042de50
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.0041b400
jmp 0x425fac
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x425de9
lea ecx, [ebp - 0x228]
call fcn.00424730
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x425de2
mov eax, dword [eax]
mov ecx, str.Unable_to_receive_HTTP_response__url:__s__error:__s_
jmp 0x425d9e
xor eax, eax
mov dword [ebp - 0x230], 0x200
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x13
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x425e40
lea ecx, [ebp - 0x228]
call fcn.00424730
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x425e36
mov eax, dword [eax]
mov ecx, str.Unable_to_query_HTTP_headers_for_status_code__url:__s__error:__s_
jmp 0x425d9e
lea eax, [esi + 0x28]
mov dword [eax], 0
push eax
lea eax, [ebp - 0x210]
push 0x545940
push eax
call fcn.004223f0
mov ecx, dword [esi + 0x28]
add esp, 0xc
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jb 0x425eeb
mov dword [ebp - 0x22c], ecx
mov edx, 0x574a40
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x234], ebx
call fcn.004397a0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [eax]
push str.Bad_response_code_received_from_HTTP_request__url:__s__responseCode:__d_
push 4
call fcn.0041ee50
mov dword [ebp - 4], 6
mov ebx, dword [ebp - 0x23c]
test ebx, ebx
je 0x425fac
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x425fac
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x425fac
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x425fac
xor eax, eax
mov dword [ebp - 0x230], 0x100
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 5
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x425f91
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x248]
mov edx, 0x574a40
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], ebx
call fcn.004397a0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [eax]
push str.Unable_to_query_HTTP_headers_for_length__will_read_entire_stream___url:__s__responseCode:__d_
push 2
call fcn.0041ee50
mov dword [ebp - 4], 8
mov ebx, dword [ebp - 0x244]
test ebx, ebx
je 0x425fa9
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x425fa9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x425fa9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x425fa9
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x210]
push str._I64d
push eax
call fcn.004223f0
add esp, 0xc
mov byte [esi], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca771
mov esp, ebp
pop ebp
ret 8