Function at 0x4972c0
Capabilities:
Check for software breakpoints
Check http status code

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x72fc5f
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2d0
cmp byte [0x83009c], 0
push esi
push edi
mov esi, ecx
je 0x497306
lea edx, [esi + 4]
xor al, al
xchg byte [edx], al
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1551db0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x8f2ab0]
cmp eax, dword [ecx + 0x78c]
jg 0x497732
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
mov al, byte [eax]
mov byte [ebp - 0x2c], al
nop
push dword [ebp - 0x2c]
mov edi, dword [ebx + 0x10]
mov ecx, 0x8f2a8c
push dword [ebx + 0x18]
push edi
push dword [ebx + 0xc]
call fcn.00495fe0
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x49738f
push dword [ebx + 8]
push dword [ebp - 0x20]
push dword [ebx + 0xc]
push edi
push esi
call fcn.004978d0
add esp, 0x14
xor al, al
mov byte [ebp - 0x11], al
jmp 0x49770f
push 0
mov dword [ebp - 0x44], 4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x44]
push 0
push eax
push ecx
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4974bf
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0055f380
add esp, 0xc
push eax
push edi
push dword [ebx + 0xc]
mov byte [ebp - 4], 2
sub esp, 8
mov eax, esp
mov dword [eax], str.failed_to_query_status_of__url___error_
mov dword [eax + 4], 0x2d
lea eax, [ebp - 0x98]
push eax
call fcn.00493780
mov edi, dword [ebx + 8]
add esp, 0x18
mov ecx, edi
push eax
call fcn.0047cba0
lea ecx, [ebp - 0x98]
call fcn.0047c810
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.0047c810
cmp byte [0xa82632], 0
mov ecx, dword [0x8300d0]
mov eax, dword [str.DesktopInstaller]
je 0x49745e
cmp byte [0x8e0c40], 0
je 0x49745e
test cl, cl
je 0x4976cb
cmp cl, 6
jb 0x4976cb
shr ecx, 8
cmp cl, 2
jb 0x4976cb
jmp 0x497466
test cl, cl
je 0x4976cb
mov dword [ebp - 0x20], 0xe21755
mov edx, dword [ebp - 0x20]
mov eax, dword [0x8300d0]
sub edx, 0x6d5771
mov ecx, edx
mov dword [ebp - 0x38], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x20], eax
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497490
sub ecx, esi
cmp dword [edi + 0x14], 0x10
mov esi, edi
jb 0x4974a3
mov esi, dword [edi]
mov eax, dword [edi + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, esp
push ecx
push edx
push 2
push dword [ebp - 0x20]
push dword [ebp - 0x38]
jmp 0x4976aa
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
cmp eax, 0xc8
jb 0x4974d6
cmp eax, 0x12b
jbe 0x4976d2
cmp eax, 0x130
je 0x4976d2
push 0x200
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x38], 0x200
push 0
push eax
call fcn.006f4b50
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0x14
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4975b5
mov eax, dword [ebx + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x497531
mov edx, dword [eax]
cmp dword [edi + 0x14], 0x10
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
jb 0x497545
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x10]
sub esp, 0x10
mov ecx, dword [ebx + 0x14]
lea edi, [ebp - 0x2e0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, esp
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x50], edi
push 0x2d
mov dword [eax], 0xc2dd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x80]
push str.failed_Http__url:___code:___message:_
push eax
call fcn.00480f70
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x80]
add esp, 0x1c
mov ecx, edi
push eax
call fcn.0047cba0
lea ecx, [ebp - 0x80]
jmp 0x497617
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0055f380
add esp, 0xc
push eax
push edi
push dword [ebx + 0xc]
mov byte [ebp - 4], 3
sub esp, 8
mov eax, esp
mov dword [eax], str.failed_to_query_status_text_of__url___error_
mov dword [eax + 4], 0x32
lea eax, [ebp - 0xc8]
push eax
call fcn.00493780
mov edi, dword [ebx + 8]
add esp, 0x18
mov ecx, edi
push eax
call fcn.0047cba0
lea ecx, [ebp - 0xc8]
call fcn.0047c810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.0047c810
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x24], eax
je 0x497657
cmp byte [0x8e0c40], 0
je 0x497657
test cl, cl
je 0x4976cb
cmp cl, 6
jb 0x4976cb
shr ecx, 8
cmp cl, 2
jb 0x4976cb
jmp 0x49765b
test cl, cl
je 0x4976cb
mov dword [ebp - 0x24], 0xe70cc9
mov edx, dword [ebp - 0x24]
mov eax, dword [0x8300d0]
sub edx, 0x724ce5
mov ecx, edx
mov dword [ebp - 0x20], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 0x24], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497680
sub ecx, esi
cmp dword [edi + 0x14], 0x10
mov esi, edi
jb 0x497693
mov esi, dword [edi]
mov eax, dword [edi + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, esp
push ecx
push edx
push 2
push dword [ebp - 0x24]
push dword [ebp - 0x20]
mov dword [ebp - 0x40], esi
lea esi, [ebp - 0x40]
mov dword [eax], 0xd
mov dword [eax + 4], 0
mov dword [eax + 8], esi
call fcn.00505470
mov esi, dword [ebp - 0x2c]
add esp, 0x28
xor al, al
mov byte [ebp - 0x11], al
jmp 0x49770f
cmp byte [0x830094], 0
je 0x4976ed
push dword [ebx + 8]
push edi
push esi
call fcn.00497f80
add esp, 0xc
mov byte [ebp - 0x11], al
jmp 0x49770f
cmp eax, 0xcc
je 0x49770a
cmp eax, 0x130
je 0x49770a
push dword [ebx + 8]
push edi
push esi
call fcn.00497f80
add esp, 0xc
jmp 0x49770c
mov al, 1
mov byte [ebp - 0x11], al
test esi, esi
je 0x49771d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
push 0x8f2ab0
call fcn.006f2701
add esp, 4
cmp dword [0x8f2ab0], 0xffffffff
jne 0x497326
mov ecx, 0x8f2a8c
mov dword [ebp - 4], 0
call fcn.00494110
push 0x73fbc0
call fcn.006f255c
push 0x8f2ab0
mov dword [ebp - 4], 0xffffffff
call fcn.006f26b7
add esp, 8
jmp 0x497326