Function at 0xbd54c0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push esi
push edi
lea eax, [ebp - 0x1ac]
push eax
push 0xe2
push 5
push 0x2a6
push 0xbdff48
call fcn.00bd3185
add esp, 0x14
xor esi, esi
xor eax, eax
mov word [ebp - 0xca], ax
lea eax, [ebp - 0x1ac]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.winhttp.dll_WinHttpOpen]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
test edi, edi
je 0xbd56dd
mov word [ebp - 0x30], ax
xor ecx, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push esi
push dword [ebp + 8]
inc ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.winhttp.dll_WinHttpCrackUrl]
test eax, eax
jne 0xbd556c
push edi
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0xbd56dd
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x34]
push ebx
push esi
mov word [ecx + eax*2], dx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.winhttp.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0xbd5593
push edi
jmp 0xbd55f4
mov eax, dword [ebp - 0x1c]
cmp word [eax], si
jne 0xbd55a1
push 0x2f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x54]
push eax
push 8
push 6
push 0x990
push 0xbdff48
call fcn.00bd3185
add esp, 0x14
xor eax, eax
cmp dword [ebp - 0x3c], 2
mov ecx, 0x800000
mov word [ebp - 0x4c], ax
cmove eax, ecx
or eax, 0x100
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0xbd5601
push edi
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0xbd56dc
lea eax, [ebp - 0xc8]
mov edi, esi
push eax
push 0x72
push 5
push 0x25
push 0xbdff48
call fcn.00bd3185
add esp, 0x14
xor eax, eax
mov word [ebp - 0x56], ax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
test eax, eax
jne 0xbd566f
call sub.ntdll.dll_RtlGetLastWin32Error
cmp eax, 0x2f8f
jne 0xbd566b
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x13300
push eax
push 0x1f
push ebx
call dword [sym.imp.winhttp.dll_WinHttpSetOption]
test eax, eax
push 1
pop eax
cmovne edi, eax
test edi, edi
jne 0xbd5623
mov eax, dword [ebp + 0x18]
push esi
push ebx
mov dword [eax], esi
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
mov edi, dword [ebp - 8]
test eax, eax
je 0xbd56c3
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push esi
push 0x20000013
push ebx
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xc8
jne 0xbd56c3
push dword [ebp + 0x14]
push ebx
call fcn.00bd53d9
pop ecx
pop ecx
mov esi, eax
push edi
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
push ebx
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret