Function at 0x40175a
Capabilities:
Check http status code
Read http header

Disassembly:
push ebp
lea ebp, [esp - 0x9f8c]
mov eax, 0xa00c
call fcn.00445f70
mov eax, dword [0x47b570]
xor eax, ebp
mov dword [ebp + 0x9f88], eax
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
push edi
push 0
mov edi, ecx
lea edx, [ebp - 0x7c]
push edx
lea ecx, [edi + 0x88]
push ecx
push 0
lea esi, [edi + 0xc4]
mov eax, dword [esi]
push 0x20000013
push eax
mov dword [ebp - 0x7c], 4
call ebx
test eax, eax
jne 0x4017f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x40]
mov dword [edi + 0x84], eax
cmp dword [ecx + 0x14], 8
jb 0x4017c5
mov ecx, dword [ecx]
push ecx
push eax
push 0x5a5a
mov ecx, str.Y4vp5A6Xy8sGjenqEsSIylSL8uUbl8v8LA
call fcn.00420467
pop ecx
push eax
call fcn.0041f822
add esp, 0xc
mov dword [edi + 0x80], 3
xor eax, eax
jmp 0x401a75
mov ecx, dword [edi + 0x88]
mov dword [ebp - 0x7c], 0x9fff
cmp ecx, 0xc8
je 0x4018b2
lea eax, [edi + 0x40]
cmp dword [eax + 0x14], 8
jb 0x401815
mov eax, dword [eax]
push eax
push ecx
mov ecx, str.dY36_wnEzsxJnf6rWdPO3UON7vkS0oqPQIv05lySvaU
call fcn.00420467
push eax
call fcn.0041f822
mov eax, dword [edi + 0x88]
add esp, 0xc
cmp eax, 0x12d
je 0x40183e
cmp eax, 0x12e
jne 0x4018a1
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0x21
push eax
call ebx
test eax, eax
je 0x4018a1
lea ebx, [edi + 0x40]
cmp dword [ebx + 0x14], 8
jb 0x401862
mov eax, dword [ebx]
jmp 0x401864
mov eax, ebx
lea ecx, [ebp - 0x78]
push ecx
push eax
mov ecx, str.covi4hLQzttJ2enuGN6cykWNu0O2IOPA6q7_xOXy_ws
call fcn.00420467
push eax
call fcn.0041f822
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.004022c5
call fcn.00401019
and dword [esi], 0
mov ecx, edi
call fcn.00401489
movzx eax, al
neg eax
sbb eax, eax
jmp 0x401a75
mov eax, dword [edi + 0x88]
mov dword [edi + 0x84], eax
jmp 0x4017e0
push 0
lea ecx, [ebp - 0x7c]
push ecx
lea eax, [edi + 0xb8]
push eax
push 0
push 0x20000005
push dword [esi]
call ebx
cmp byte [edi + 0xac], 0
je 0x401905
mov eax, dword [edi + 0xb8]
add dword [0x47f500], eax
push dword [0x47f500]
mov ecx, str.Z4ri5R_gh8Fuje_7XNaKy0OdugT2ZrKSI3X7hLQmscG3PrCNjO3HmXzQI1oLtX43E7zgdhIlfTqGJfLyyw
push eax
push 0x27c
push 0x1534
call fcn.00420467
pop ecx
pop ecx
push eax
call fcn.0041f822
add esp, 0xc
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0x2f
push eax
mov dword [edi + 0x80], 2
mov dword [ebp - 0x7c], 0x9fff
call ebx
test eax, eax
je 0x4019d0
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ebp + ecx*2 - 0x78], ax
push 0x24ef
mov ecx, str.QJD37hLWg8ob
call fcn.004204c2
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4274
push 0x1393
mov ecx, str.dY3p2AjFp_g
call fcn.00420467
push eax
push str.shlwapi.dll
call fcn.0042748c
add esp, 0x10
call eax
test eax, eax
je 0x4019d6
add eax, 0x12
cmp word [eax], 0x22
mov dword [ebp - 0x80], eax
jne 0x40198a
add eax, 2
mov dword [ebp - 0x80], eax
push 0x22
push eax
call fcn.004305dc
pop ecx
pop ecx
test eax, eax
jne 0x4019bd
push 0x20
push dword [ebp - 0x80]
call fcn.004305dc
pop ecx
pop ecx
test eax, eax
je 0x4019ad
xor ecx, ecx
mov word [eax], cx
push 0x3b
push dword [ebp - 0x80]
call fcn.004305dc
pop ecx
pop ecx
test eax, eax
je 0x4019c2
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x80]
lea eax, [edi + 8]
push eax
call fcn.004022c5
jmp 0x4019d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [ebp - 0x7c], 0x9fff
cmp dword [edi + 0x18], eax
jne 0x401a6c
mov esi, dword [esi]
push eax
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push 0x80000015
push esi
call ebx
test eax, eax
je 0x401a6c
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ebp + ecx*2 - 0x78], ax
lea eax, [ebp - 0x78]
push 0x20
push eax
call fcn.004305dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401a22
lea esi, [ebp - 0x78]
jmp 0x401a25
add esi, 2
push 0x20
push esi
call fcn.004305dc
pop ecx
pop ecx
test eax, eax
je 0x401a38
xor ecx, ecx
mov word [eax], cx
push 0x3f
push esi
call fcn.004305dc
pop ecx
pop ecx
test eax, eax
je 0x401a4b
xor ecx, ecx
mov word [eax], cx
push 0x2f
push esi
call fcn.00430603
pop ecx
pop ecx
test eax, eax
jne 0x401a5d
mov eax, esi
jmp 0x401a60
add eax, 2
push eax
add edi, 8
push edi
call fcn.004022c5
jmp 0x401a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x9f88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fd59
add ebp, 0x9f8c
leave
ret