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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485dd6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x8a98
call fcn.0046ae30
mov eax, dword [0x499100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x8a44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8a48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x8a54], ebx
mov dword [ebp - 0x8a38], eax
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
mov dword [ebp - 4], 2
mov ecx, eax
movlpd qword [ebp - 0x8aa4], xmm0
mov dword [ebp - 0x8a9c], 0
movlpd qword [ebp - 0x8a90], xmm0
movlpd qword [ebp - 0x8a88], xmm0
mov dword [ebp - 0x8a80], 0
movlpd qword [ebp - 0x8a74], xmm0
mov byte [ebp - 0x8a25], 0
mov dword [ebp - 0x8a60], 0x489094
mov dword [ebp - 0x8a5c], 0
mov dword [ebp - 0x8a3c], 0x800
mov dword [ebp - 0x8a40], 3
jb 0x411ee4
mov ecx, dword [eax]
mov dword [eax + 0x10], 0
lea eax, [ebp - 0x224]
mov byte [ecx], 0
mov dword [ebp - 0x8a98], eax
lea eax, [ebp - 0xa24]
mov dword [ebp - 0x8a7c], eax
lea eax, [ebp - 0x8aa8]
push eax
push 0
push 0
push edx
mov dword [ebp - 0x8aa8], 0x3c
mov dword [ebp - 0x8a94], 0x100
mov dword [ebp - 0x8a78], 0x400
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
movzx eax, byte [ebp - 0x8a25]
mov edx, 0x1bb
cmp word [ebp - 0x8a90], dx
mov ecx, 1
push 0
push 0
push 0
push 0
cmove eax, ecx
push str.OBS_Studio_Updater_3.0
mov dword [ebp - 0x8a34], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x8a58], edi
mov dword [ebp - 0x8a64], edi
test edi, edi
jne 0x411f87
mov dword [ebx], 0xffffffff
jmp 0x412366
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x8a3c]
push 4
push eax
push 0x54
push edi
call esi
push 4
lea eax, [ebp - 0x8a40]
push eax
push 0x76
push edi
call esi
cmp byte [ebp - 0x8a34], 0
mov ecx, 0x1bb
mov eax, 0x50
cmovne eax, ecx
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x8a2c], ecx
mov dword [ebp - 0x8a68], ecx
test ecx, ecx
jne 0x411ffe
mov dword [ebx], 0xfffffffe
push edi
mov dword [ebp - 4], 8
call fcn.004074b0
add esp, 4
jmp 0x412366
mov eax, dword [ebp - 0x8a34]
movzx eax, al
shl eax, 0x17
add eax, 0x100
push eax
lea eax, [ebp - 0x8a60]
push eax
push 0
push 0
lea eax, [ebp - 0xa24]
push eax
push str.POST
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x8a34], esi
mov dword [ebp - 0x8a6c], esi
test esi, esi
jne 0x41206a
mov dword [ebx], 0xfffffffd
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0xa
call fcn.004074b0
push edi
mov dword [ebp - 4], 0xb
call fcn.004074b0
add esp, 8
jmp 0x412366
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x8a48]
push 0
push eax
push eax
push dword [ebp - 0x8a44]
mov eax, ecx
neg eax
sbb eax, eax
push eax
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x412335
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0
test eax, eax
mov dword [ebp - 0x8a4c], 0x10
lea eax, [ebp - 0x8a4c]
push eax
lea eax, [ebp - 0x24]
setne byte [ebp - 0x8a25]
push eax
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4120f7
mov dword [ebx], 0xfffffffc
push esi
mov byte [ebp - 4], 0xf
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x10
call fcn.004074b0
mov dword [ebp - 4], 0x11
jmp 0x41235d
mov ecx, dword [ebp - 0x8a38]
xor eax, eax
push 0x40000
mov word [ebp - 0x16], ax
mov byte [ebp - 4], 0x12
call fcn.00412410
push 0xa
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00473412
add esp, 0xc
mov dword [ebx], eax
cmp byte [ebp - 0x8a25], 0
je 0x4122c6
cmp eax, 0xc8
jne 0x4122c6
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x8a30]
mov dword [ebp - 0x8a30], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41229b
mov eax, dword [ebp - 0x8a30]
mov ecx, 0x8000
cmp eax, 0x8000
cmova eax, ecx
lea ecx, [ebp - 0x8a50]
push ecx
push eax
mov dword [ebp - 0x8a30], eax
lea eax, [ebp - 0x8a24]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x412270
mov eax, dword [ebp - 0x8a50]
test eax, eax
je 0x4121ea
push eax
lea eax, [ebp - 0x8a24]
push eax
push dword [ebp - 0x8a38]
call fcn.00412390
add esp, 0xc
test al, al
je 0x412245
push 0
push dword [0x49b5e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41221a
cmp dword [ebp - 0x8a30], 0
ja 0x412150
push esi
mov byte [ebp - 4], 0x26
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x27
call fcn.004074b0
push edi
mov dword [ebp - 4], 0x28
call fcn.004074b0
add esp, 0xc
mov al, 1
jmp 0x412368
mov dword [ebx], 0xfffffff2
push esi
mov byte [ebp - 4], 0x23
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x24
call fcn.004074b0
mov dword [ebp - 4], 0x25
jmp 0x41235d
mov dword [ebx], 0xfffffffa
push esi
mov byte [ebp - 4], 0x20
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x21
call fcn.004074b0
mov dword [ebp - 4], 0x22
jmp 0x41235d
mov dword [ebx], 0xfffffff7
push esi
mov byte [ebp - 4], 0x1d
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x1e
call fcn.004074b0
mov dword [ebp - 4], 0x1f
jmp 0x41235d
mov dword [ebx], 0xfffffff8
push esi
mov byte [ebp - 4], 0x1a
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x1b
call fcn.004074b0
mov dword [ebp - 4], 0x1c
jmp 0x41235d
push esi
mov byte [ebp - 4], 0x17
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0x18
call fcn.004074b0
push edi
mov dword [ebp - 4], 0x19
call fcn.004074b0
add esp, 0xc
mov al, 1
jmp 0x412368
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push esi
mov byte [ebp - 4], 0xc
call fcn.004074b0
push dword [ebp - 0x8a2c]
mov byte [ebp - 4], 0xd
call fcn.004074b0
mov dword [ebp - 4], 0xe
push edi
call fcn.004074b0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046ae1f
mov esp, ebp
pop ebp
ret