Function at 0x100071f0
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 0x10076b54
mov eax, dword fs:[0]
push eax
mov eax, 0x3538
call fcn.10028ac0
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 0x10007482
lea ecx, [ebp - 0x3520]
call fcn.100078e0
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.100519f9
push eax
call fcn.10005bd0
add esp, 0x14
lea ecx, [ebp - 0x3520]
call fcn.100078e0
lea ecx, [ebp - 0x3520]
call fcn.100078e0
push esi
lea ecx, [ebp - 0x3520]
call fcn.10008890
test eax, eax
je 0x10007482
mov eax, dword [ebp - 0x10d0]
mov dword [ebp - 0x353c], eax
cmp eax, 2
je 0x100072f2
cmp eax, 3
jne 0x10007482
movzx eax, word [ebp - 0x10d4]
mov dword [ebp - 0x3538], eax
call fcn.100069a0
mov ecx, eax
test ecx, ecx
je 0x100078a9
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 0x10007330
sub ecx, edx
lea eax, [ebp - 0x30d8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3528]
call fcn.1000c030
lea ecx, [ebp - 0x20d6]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007360
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 0x100078b3
push ecx
push eax
call fcn.10051b2b
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x10a4], edx
add esp, 8
cmp ecx, edi
jl 0x100078bd
add edi, edx
js 0x100078c7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x100073e8
push edi
lea ecx, [ebp - 0x3528]
call fcn.1000ba50
mov esi, dword [ebp - 0x3528]
mov edx, dword [ebp - 0x10a4]
mov ecx, dword [ebp - 0x352c]
cmp ebx, ecx
ja 0x100073fb
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.1000f810
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x100078b3
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 0x10007464
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 0x100074b6
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 0x10007480
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 0x10007496
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.1002894c
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 0x10007507
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
jmp 0x10007464
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 0x1000759a
lea eax, [ebp - 0x31da]
push eax
call edi
test eax, eax
jle 0x1000759a
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 0x100075c0
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 0x10007613
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10007603
push eax
call edi
mov dword [ebp - 0x1094], 0
push dword [ebp - 0x3524]
call edi
push ebx
call edi
jmp 0x10007464
push 0
push dword [ebp - 0x1094]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10007652
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10007603
push eax
call edi
push dword [ebp - 0x3524]
mov dword [ebp - 0x1094], 0
call edi
push ebx
call edi
jmp 0x10007464
push 0x80
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x10ac], xmm0
call fcn.1004a5f0
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 0x100076d4
mov edx, dword [ebp - 0x10ac]
jg 0x100076c9
test edx, edx
je 0x100076d4
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 0x100075e6
cmp dword [ebp - 0x10a0], 0
jne 0x100075e6
cmp dword [ebp - 0x109c], 0
jne 0x100075e6
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 0x10007832
cmp dword [ebp - 0x1098], 0
jbe 0x10007832
push 0x1000
lea eax, [ebp - 0x1090]
push 0
push eax
call fcn.1004a5f0
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 0x10007832
mov edx, dword [ebp - 0x1098]
test edx, edx
je 0x10007832
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 0x10007832
mov eax, dword [ebp - 0x10a4]
cmp eax, dword [ebp - 0x1098]
jne 0x10007832
add ebx, eax
mov eax, dword [ebp - 0x3544]
adc edi, 0
test eax, eax
je 0x1000780d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007832
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 0x10007763
mov ecx, dword [ebp - 0x10ac]
mov eax, dword [ebp - 0x10a8]
cmp ebx, ecx
jne 0x10007846
cmp edi, eax
je 0x1000784e
test ecx, ecx
jne 0x10007855
test eax, eax
jne 0x10007855
mov ebx, 1
jmp 0x10007857
xor ebx, ebx
mov eax, dword [ebp - 0x1094]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10007874
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 0x10007482
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10007482
push 0x80004005
call fcn.10005cd0
push 0x80070057
call fcn.10005cd0
push 0x80070057
call fcn.10005cd0
push 0x80070057
call fcn.10005cd0
int3