Function at 0x401bc0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.004174d0
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
mov dword [ebp - 0x2024], edx
mov dword [ebp - 0x2018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2028], eax
cmp eax, 0xffffffff
jne 0x401c53
push esi
push str.Could_not_create_destination_file___s_
lea eax, [ebp - 0x2008]
push 0x2000
push eax
call fcn.004010d0
add esp, 0x10
lea eax, [ebp - 0x2008]
push 0x30
push str.Scopevisio_Launcher_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031d7
mov esp, ebp
pop ebp
ret
mov ecx, 0x47b7a0
mov dword [ebp - 0x200c], 0
xor eax, eax
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2010], 0
xor edi, edi
mov dword [ebp - 0x2020], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c83
sub ecx, edx
sar ecx, 1
je 0x401cb8
mov ecx, 0x47d580
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ca0
sub ecx, edx
sar ecx, 1
je 0x401cb8
mov ebx, 1
jmp 0x401cba
xor ebx, ebx
xor esi, esi
nop dword [eax]
test ebx, ebx
je 0x401d1f
push 0xfa0
lea eax, [ebp - 0xfa8]
push 0
push eax
call fcn.004044b0
add esp, 0xc
lea eax, [ebp - 0xfa8]
push 0x47d580
push 0x47b7a0
push str._s:_s
push 0x19
push eax
call fcn.00401050
add esp, 0x14
lea eax, [ebp - 0xfa8]
push 0
push str._local_
push eax
push 3
push str.WinHTTP_SV_Launcher
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0x2014], ecx
jmp 0x401d75
push 0
push 0
push 0
push 0
push str.WinHTTP_SV_Launcher
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov eax, dword [0x47d718]
mov dword [ebp - 0x2014], ecx
test eax, eax
je 0x401d75
test esi, esi
jne 0x401d75
push 0xc
mov dword [ebp - 0x2030], eax
lea eax, [ebp - 0x2034]
push eax
push 0x26
push ecx
mov dword [ebp - 0x202c], esi
mov dword [ebp - 0x2034], 3
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x401da7
cmp dword [ebp - 0x2018], 0
mov edx, 0x1bb
mov eax, 0x50
push 0
cmovne eax, edx
movzx eax, ax
push eax
push 0x47d930
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2020], eax
jmp 0x401dad
mov eax, dword [ebp - 0x2020]
test eax, eax
je 0x401ddc
mov ecx, dword [ebp - 0x2018]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push 0
push 0
push 0
push dword [ebp - 0x2024]
push 0x41ddec
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test ebx, ebx
je 0x401e08
call fcn.004013b0
test eax, eax
je 0x401e08
push 0
push 0x47a5f0
push 0x479650
push 1
push 1
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [ebp - 0x2010], eax
jmp 0x401e0e
mov eax, dword [ebp - 0x2010]
test edi, edi
je 0x401e2b
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x2010], eax
test eax, eax
jne 0x401eb5
inc esi
cmp esi, 2
jl 0x401cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Kein_Netzwerkzugriff
mov ecx, eax
call fcn.00401840
mov ebx, 1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x401e61
push edi
call esi
mov eax, dword [ebp - 0x2020]
test eax, eax
je 0x401e6e
push eax
call esi
mov eax, dword [ebp - 0x2014]
test eax, eax
je 0x401e7b
push eax
call esi
push dword [ebp - 0x2028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40205a
push 0x30
push str.Scopevisio_Launcher_Error
push str.Could_not_close_temp_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031d7
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x401e3d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
push 0
lea eax, [ebp - 0x2024]
mov dword [ebp - 0x2018], 0
push eax
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2024], 4
push eax
push 0
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [ebp - 0x2018]
cmp ecx, 0x197
je 0x402030
cmp ecx, 0x190
jb 0x401f28
cmp ecx, 0x257
jbe 0x401fff
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402024
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x401e4f
inc eax
push eax
call fcn.004033e8
mov esi, eax
add esp, 4
test esi, esi
je 0x40200b
mov ecx, dword [ebp - 0x200c]
inc ecx
push ecx
push 0
push esi
call fcn.004044b0
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x200c]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401fa8
call ebx
push eax
push str.Error__u_in_WinHttpReadData._n
call fcn.00401090
add esp, 8
jmp 0x401fd7
cmp dword [ebp - 0x200c], 0
mov dword [ebp - 0x2010], 0
jbe 0x401fd7
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x201c]
push esi
push dword [ebp - 0x2028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004031e8
add esp, 4
cmp dword [ebp - 0x201c], 0
je 0x401e4f
cmp dword [ebp - 0x200c], 0
ja 0x401ed0
jmp 0x401e4f
call fcn.00401b00
xor ebx, ebx
jmp 0x401e54
push 0x30
push str.Scopevisio_Launcher_Error
push str.Out_of_memory
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401e4f
call ebx
mov edx, str.Keine_Daten_vorhanden
jmp 0x401e48
call fcn.004013b0
test eax, eax
jne 0x402004
mov ecx, 0x197
call fcn.00401b00
xor ebx, ebx
push ebx
push ebx
push 2
push dword [0x47d374]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x401e54
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031d7
mov esp, ebp
pop ebp
ret