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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5160d0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xc148
call fcn.004cb9c0
mov eax, dword [0x56e754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc088], esi
mov eax, dword [ebx + 0xc]
mov ecx, str.Opening_internet_stream__url:__s__length:__d_
mov edi, dword [ebx + 8]
mov edx, edi
push dword [ebx + 0x10]
mov dword [ebp - 0xc098], eax
xor eax, eax
mov dword [ebp - 0xc09c], eax
mov dword [ebp - 0xc084], edi
mov dword [ebp - 0xc080], eax
mov byte [esi], al
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
call fcn.0042e970
add esp, 4
mov ecx, esi
push edi
call fcn.00425a60
test al, al
jne 0x426098
mov edx, edi
mov ecx, str.Unable_to_get_create_session_for_url__url:__s_
call fcn.0042e1a0
jmp 0x426782
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x18]
push str.POST
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4260cd
push dword [ebx + 0x10]
mov edx, edi
call fcn.0042ea10
add esp, 4
jmp 0x426782
sub esp, 8
lea ecx, [ebp - 0xc158]
call fcn.0042b320
mov edi, dword [ebx + 0x18]
mov dword [ebp - 4], 0
mov edi, dword [edi + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x426355
lea eax, [esi + 8]
mov dword [ebp - 0xc090], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc080]
mov eax, dword [eax + 0x10]
or ecx, 1
add eax, 2
mov dword [ebp - 0xc080], ecx
mov dword [ebp - 0xc09c], ecx
mov dword [ebp - 0xc08c], ecx
lea ecx, [ebp - 0xc060]
push eax
mov dword [ebp - 0xc050], 0
mov dword [ebp - 0xc04c], 0xf
mov byte [ebp - 0xc060], 0
call fcn.00429a00
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0xc060]
call fcn.0041a940
push 0x541dac
lea ecx, [ebp - 0xc060]
call fcn.0041a8d0
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0xc060]
mov dword [ebp - 0xc094], eax
call fcn.0041a940
mov dword [ebp - 0xc038], 0
mov dword [ebp - 0xc034], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc048], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc038], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0xc080]
or eax, 2
mov dword [ebp - 0xc09c], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0xc048]
cmp dword [ebp - 0xc034], 0x10
lea ecx, [ebp - 0xc078]
cmovae edx, dword [ebp - 0xc048]
call fcn.00423bb0
mov eax, dword [ebp - 0xc08c]
or eax, 6
mov dword [ebp - 0xc080], eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xc034]
cmp edx, 0x10
jb 0x42623c
mov ecx, dword [ebp - 0xc048]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42622c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267a4
push edx
push ecx
call fcn.004ca782
mov eax, dword [ebp - 0xc080]
add esp, 8
and eax, 0xfffffffe
mov dword [ebp - 0xc038], 0
mov dword [ebp - 0xc034], 0xf
mov byte [ebp - 0xc048], 0
mov dword [ebp - 0xc080], eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xc04c]
cmp edx, 0x10
jb 0x42629e
mov ecx, dword [ebp - 0xc060]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426294
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267a4
push edx
push ecx
call fcn.004ca782
add esp, 8
cmp dword [ebp - 0xc064], 8
lea eax, [ebp - 0xc078]
push 0xa0000000
cmovae eax, dword [ebp - 0xc078]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0xc088]
mov dword [ebp - 0xc050], 0
mov dword [ebp - 0xc04c], 0xf
mov byte [ebp - 0xc060], 0
push dword [eax + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [ebp - 0xc090]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4262f5
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xc148]
push eax
call fcn.00430a90
add esp, 0xc
mov edx, 0x545e80
mov ecx, eax
call fcn.0042ebf0
mov ecx, eax
mov eax, dword [ebp - 0xc094]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x426325
mov eax, dword [eax]
push edx
push eax
push ecx
call fcn.00430a90
add esp, 0xc
mov edx, 0x545e7c
mov ecx, eax
call fcn.0042ebf0
lea ecx, [ebp - 0xc078]
mov byte [ebp - 4], 0
call fcn.0041b400
mov esi, dword [esi]
cmp esi, edi
jne 0x4260f2
lea eax, [ebp - 0xc030]
push eax
lea ecx, [ebp - 0xc140]
call fcn.0042ca40
mov edi, dword [ebx + 0x10]
push 0
push edi
push edi
mov byte [ebp - 4], 6
push dword [ebp - 0xc098]
mov esi, dword [ebp - 0xc088]
push 0xffffffffffffffff
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x426403
lea ecx, [ebp - 0xc078]
call fcn.00424730
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4263a6
mov eax, dword [eax]
mov edx, dword [ebp - 0xc084]
mov ecx, str.Unable_to_send_stream_POST_request__url:__s__length:__d__error:__s_
push eax
push edi
call fcn.0042eab0
add esp, 8
lea ecx, [ebp - 0xc078]
call fcn.0041b400
mov edx, dword [ebp - 0xc01c]
cmp edx, 0x10
jb 0x42675c
mov ecx, dword [ebp - 0xc030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426752
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267a4
jmp 0x426752
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x42643b
lea ecx, [ebp - 0xc078]
call fcn.00424730
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x426429
mov eax, dword [eax]
mov edx, dword [ebp - 0xc084]
mov ecx, str.Unable_to_receive_HTTP_response__url:__s__length:__d__error:__s_
push eax
push edi
jmp 0x4263b3
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor eax, eax
push eax
mov word [ebp - 0xc018], ax
lea eax, [ebp - 0xc07c]
push eax
lea eax, [ebp - 0xc018]
mov dword [ebp - 0xc07c], 0x8000
push eax
push 0
push 0x13
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x42649b
lea ecx, [ebp - 0xc078]
call fcn.00424730
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x426487
mov eax, dword [eax]
mov edx, dword [ebp - 0xc084]
mov ecx, str.Unable_to_query_HTTP_headers_for_status_code__url:__s__length:__d__error:__s_
push eax
push dword [ebx + 0x10]
jmp 0x4263b3
lea eax, [esi + 0x28]
mov dword [eax], 0
push eax
lea eax, [ebp - 0xc018]
push 0x545940
push eax
call fcn.004223f0
mov eax, dword [esi + 0x28]
add esp, 0xc
sub eax, 0xc8
mov dword [ebp - 0xc07c], 0x8000
cmp eax, 0x64
jb 0x4266f1
push 0x545e84
lea ecx, [ebp - 0xc060]
call fcn.0041a770
push 0
lea eax, [ebp - 0xc07c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xc018]
push eax
push 0
push 0x14
push dword [esi + 0xc]
call edi
test eax, eax
je 0x426532
lea ecx, [ebp - 0xc018]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426510
sub ecx, edx
lea eax, [ebp - 0xc018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc060]
call fcn.0041b490
push 0x14
push str._could_not_retrieve_
lea ecx, [ebp - 0xc048]
mov dword [ebp - 0xc07c], 0x4000
mov dword [ebp - 0xc038], 0
mov dword [ebp - 0xc034], 0xf
mov byte [ebp - 0xc048], 0
call fcn.0041b7e0
lea eax, [ebp - 0xc07c]
mov byte [ebp - 4], 0xb
push eax
push dword [ebp - 0xc07c]
lea eax, [ebp - 0x4018]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4265cf
cmp dword [ebp - 0xc07c], 0
jbe 0x4265cf
lea ecx, [ebp - 0x4018]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4265a0
sub ecx, edx
lea eax, [ebp - 0x4018]
push ecx
push eax
lea ecx, [ebp - 0xc048]
call fcn.0041b7e0
push 0x20
push dword [ebp - 0xc07c]
lea ecx, [ebp - 0xc048]
call fcn.00429b60
cmp dword [ebp - 0xc034], 0x10
lea eax, [ebp - 0xc048]
mov edx, dword [ebp - 0xc084]
lea ecx, [ebp - 0xc060]
cmovae eax, dword [ebp - 0xc048]
cmp dword [ebp - 0xc04c], 8
mov dword [ebp - 0xc098], eax
cmovae ecx, dword [ebp - 0xc060]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0xc094], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc090], ecx
lea ecx, [ebp - 0xc0a4]
mov dword [ebp - 0xc088], edx
mov edx, 0x574a40
mov dword [ebp - 0xc08c], eax
call fcn.004397a0
lea ecx, [ebp - 0xc098]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0xc094]
push ecx
lea ecx, [ebp - 0xc090]
push ecx
lea ecx, [ebp - 0xc08c]
push ecx
lea ecx, [ebp - 0xc088]
push ecx
mov ecx, dword [eax]
sub esp, 8
call fcn.004319e0
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0xc0a0]
test edi, edi
je 0x426691
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x426691
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x426691
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0xc034]
cmp edx, 0x10
jb 0x4266cb
mov ecx, dword [ebp - 0xc048]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4266c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4267a4
push edx
push ecx
call fcn.004ca782
add esp, 8
mov dword [ebp - 0xc038], 0
lea ecx, [ebp - 0xc060]
mov dword [ebp - 0xc034], 0xf
mov byte [ebp - 0xc048], 0
jmp 0x4263c1
xor eax, eax
push eax
mov word [ebp - 0xc018], ax
lea eax, [ebp - 0xc07c]
push eax
lea eax, [ebp - 0xc018]
push eax
push 0
push 5
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x426732
push dword [esi + 0x28]
mov edx, dword [ebp - 0xc084]
push dword [ebx + 0x10]
call fcn.0042eb50
add esp, 8
mov byte [esi], 1
jmp 0x4263c6
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0xc018]
push str._I64d
push eax
call fcn.004223f0
add esp, 0xc
mov byte [esi], 1
jmp 0x4263c6
push edx
push ecx
call fcn.004ca782
add esp, 8
lea ecx, [ebp - 0xc158]
mov dword [ebp - 0xc020], 0
mov dword [ebp - 0xc01c], 0xf
mov byte [ebp - 0xc030], 0
call fcn.004267b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca771
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
call fcn.004eefc0
int3