Function at 0x100071d0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076874
mov eax, dword fs:[0]
push eax
mov eax, 0x3538
call fcn.100287d0
mov eax, dword [0x1009f1f4]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1098], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x109c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3544], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3530], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3540], eax
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], ebx
je 0x10007462
lea ecx, [ebp - 0x3520]
call fcn.100078c0
push 4
push dword [0x1007d788]
mov eax, 0x50
mov dword [ebp - 0x10d0], 2
mov word [ebp - 0x10d4], ax
lea eax, [ebp - 0x3520]
push 0x21
push eax
mov dword [ebp - 0x10cc], 4
call fcn.100516e9
push eax
call fcn.10005bb0
add esp, 0x14
lea ecx, [ebp - 0x3520]
call fcn.100078c0
lea ecx, [ebp - 0x3520]
call fcn.100078c0
push esi
lea ecx, [ebp - 0x3520]
call fcn.10008770
test eax, eax
je 0x10007462
mov eax, dword [ebp - 0x10d0]
mov dword [ebp - 0x353c], eax
cmp eax, 2
je 0x100072d2
cmp eax, 3
jne 0x10007462
movzx eax, word [ebp - 0x10d4]
mov dword [ebp - 0x3538], eax
call fcn.10006980
mov ecx, eax
test ecx, ecx
je 0x10007889
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3528], eax
lea ecx, [ebp - 0x30d8]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007310
sub ecx, edx
lea eax, [ebp - 0x30d8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3528]
call fcn.1000bd50
lea ecx, [ebp - 0x20d6]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007340
mov esi, dword [ebp - 0x3528]
lea eax, [ebp - 0x20d6]
mov ebx, eax
mov dword [ebp - 0x3524], eax
sub ebx, esi
sub ecx, edx
sar ebx, 1
sar ecx, 1
mov edi, dword [esi - 0xc]
mov dword [ebp - 0x352c], edi
js 0x10007893
push ecx
push eax
call fcn.1005181b
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x10a4], edx
add esp, 8
cmp ecx, edi
jl 0x1000789d
add edi, edx
js 0x100078a7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x100073c8
push edi
lea ecx, [ebp - 0x3528]
call fcn.1000b810
mov esi, dword [ebp - 0x3528]
mov edx, dword [ebp - 0x10a4]
mov ecx, dword [ebp - 0x352c]
cmp ebx, ecx
ja 0x100073db
lea eax, [esi + ebx*2]
mov dword [ebp - 0x3524], eax
lea eax, [edx + edx]
push eax
push dword [ebp - 0x3524]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.1000f530
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x10007893
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x352c], ebx
test ebx, ebx
je 0x10007444
push 0
push dword [ebp - 0x3538]
lea eax, [ebp - 0x34de]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x3524], edi
test edi, edi
jne 0x10007496
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10007460
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10007476
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
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.1002865c
mov esp, ebp
pop ebp
ret 0x30
mov dword [ebp - 0x1094], 0
xor ecx, ecx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x353c], 3
mov eax, 0x800000
cmovne eax, ecx
push eax
push ecx
push ecx
push dword [ebp - 0x3540]
push esi
push dword [ebp - 0x3530]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1094], eax
test eax, eax
jne 0x100074e7
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
jmp 0x10007444
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x10b0]
push 4
push eax
push 0x3f
push dword [ebp - 0x1094]
mov dword [ebp - 0x10b0], 8
call edi
push 4
lea eax, [ebp - 0x10b4]
mov dword [ebp - 0x10b4], 0x3300
push eax
push 0x1f
push dword [ebp - 0x1094]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x32dc]
push eax
call edi
test eax, eax
jle 0x1000757a
lea eax, [ebp - 0x31da]
push eax
call edi
test eax, eax
jle 0x1000757a
push 0
lea eax, [ebp - 0x31da]
push eax
lea eax, [ebp - 0x32dc]
push eax
push 1
push 0
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x100075a0
push eax
call edi
push 0x10000000
push eax
mov eax, dword [ebp - 0x1098]
push eax
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea eax, [ebp - 0x1094]
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
push dword [ebp - 0x109c]
push 0
push 0
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x100075f3
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x100075e3
push eax
call edi
mov dword [ebp - 0x1094], 0
push dword [ebp - 0x3524]
call edi
push ebx
call edi
jmp 0x10007444
push 0
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10007632
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x100075e3
push eax
call edi
push dword [ebp - 0x3524]
mov dword [ebp - 0x1094], 0
call edi
push ebx
call edi
jmp 0x10007444
push 0x80
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x10ac], xmm0
call fcn.1004a2e0
add esp, 0xc
mov dword [ebp - 0x109c], 0x80
lea eax, [ebp - 0x109c]
push 0
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 5
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x10ac]
push eax
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToInt64ExW]
mov edi, dword [ebp - 0x10a8]
test edi, edi
jl 0x100076b4
mov edx, dword [ebp - 0x10ac]
jg 0x100076a9
test edx, edx
je 0x100076b4
mov eax, dword [ebp + 0xc]
push edi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10a0]
push edx
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x3534], xmm0
push dword [ebp - 0x3530]
movlpd qword [ebp - 0x10a0], xmm0
push dword [ebp - 0x3534]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x100075c6
cmp dword [ebp - 0x10a0], 0
jne 0x100075c6
cmp dword [ebp - 0x109c], 0
jne 0x100075c6
lea eax, [ebp - 0x1098]
mov dword [ebp - 0x1098], 0
push eax
push dword [ebp - 0x1094]
xorps xmm0, xmm0
movlpd qword [ebp - 0x10a0], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [ebp - 0x109c]
mov ebx, dword [ebp - 0x10a0]
test eax, eax
je 0x10007812
cmp dword [ebp - 0x1098], 0
jbe 0x10007812
push 0x1000
lea eax, [ebp - 0x1090]
push 0
push eax
call fcn.1004a2e0
add esp, 0xc
lea eax, [ebp - 0x1098]
push eax
push 0x1000
lea eax, [ebp - 0x1090]
push eax
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10007812
mov edx, dword [ebp - 0x1098]
test edx, edx
je 0x10007812
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x10a4]
push esi
push edx
mov dword [ebp - 0x10a4], 0
lea edx, [ebp - 0x1090]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp - 0x3528]
test eax, eax
js 0x10007812
mov eax, dword [ebp - 0x10a4]
cmp eax, dword [ebp - 0x1098]
jne 0x10007812
add ebx, eax
mov eax, dword [ebp - 0x3544]
adc edi, 0
test eax, eax
je 0x100077ed
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007812
lea eax, [ebp - 0x1098]
mov dword [ebp - 0x1098], 0
push eax
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10007743
mov ecx, dword [ebp - 0x10ac]
mov eax, dword [ebp - 0x10a8]
cmp ebx, ecx
jne 0x10007826
cmp edi, eax
je 0x1000782e
test ecx, ecx
jne 0x10007835
test eax, eax
jne 0x10007835
mov ebx, 1
jmp 0x10007837
xor ebx, ebx
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10007854
push eax
call edi
mov dword [ebp - 0x1094], 0
push dword [ebp - 0x3524]
call edi
push dword [ebp - 0x352c]
call edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10007462
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10007462
push 0x80004005
call fcn.10005cb0
push 0x80070057
call fcn.10005cb0
push 0x80070057
call fcn.10005cb0
push 0x80070057
call fcn.10005cb0
int3