Function at 0x40aa00
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x130], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40ad08
test eax, eax
je 0x40ad08
test edi, edi
je 0x40ad08
push 0
push 0
push 0x45f404
push 0x45e588
sub esp, 8
mov dword [edi], 0
mov edx, str.InternetOpenA
mov ecx, str.Wininet.dll
push 1
call fcn.00407a00
add esp, 0x1c
test al, al
je 0x40ad08
push 0
push dword [0x45f404]
mov edx, str.InternetConnectA
mov ecx, str.Wininet.dll
push 0
push 0x45e58c
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov edx, str.HttpOpenRequestA
mov ecx, str.Wininet.dll
mov bl, al
push 0
push dword [0x45f404]
push 0
push 0x45f8c0
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov byte [ebp - 0x129], al
mov edx, str.HttpSendRequestA
mov ecx, str.Wininet.dll
push 0
push dword [0x45f404]
push 0
push 0x45e36c
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov byte [ebp - 0x12a], al
mov edx, str.InternetOpenUrlA
mov ecx, str.Wininet.dll
push 0
push dword [0x45f404]
push 0
push 0x45ede8
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov byte [ebp - 0x12b], al
mov edx, str.InternetReadFile
mov ecx, str.Wininet.dll
push 0
push dword [0x45f404]
push 0
push 0x45e364
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov byte [ebp - 0x12c], al
mov edx, str.InternetCloseHandle
mov ecx, str.Wininet.dll
push 0
push dword [0x45f404]
push 0
push 0x45eb10
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
mov edx, str.InternetQueryOptionA
mov ecx, str.Wininet.dll
mov bh, al
push 0
push dword [0x45f404]
push 0
push 0x45e580
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
test bl, bl
je 0x40ad08
cmp byte [ebp - 0x129], 0
je 0x40ad08
cmp byte [ebp - 0x12a], 0
je 0x40ad08
cmp byte ds:[ebp - 0x12b], 0
je 0x40ad08
cmp byte [ebp - 0x12c], 0
je 0x40ad08
test bh, bh
je 0x40ad08
nop dword [eax + eax]
test al, al
je 0x40ad08
push 0
push esi
push 0
push 0x45f658
sub esp, 8
mov edx, str.CertGetCertificateContextProperty
mov ecx, str.Crypt32.dll
push 1
call fcn.00407a00
add esp, 0x1c
mov edx, str.CertFreeCertificateChain
mov ecx, str.Crypt32.dll
mov bl, al
push 0
push esi
push 0
push 0x45f688
sub esp, 8
push 1
call fcn.00407a00
add esp, 0x1c
test bl, bl
je 0x40ad08
test al, al
je 0x40ad08
mov eax, dword [0x45e588]
mov esi, dword [0x45eb2c]
mov ecx, esi
mov dword [0x45eb84], eax
mov eax, dword [0x45ede8]
mov dword [0x45e350], eax
mov eax, dword [0x45e364]
mov dword [0x45f64c], eax
mov eax, dword [0x45eb10]
mov dword [0x45eb18], eax
mov eax, dword [0x45e580]
mov dword [0x45f418], eax
mov eax, dword [0x45f658]
mov dword [0x45eb80], eax
mov eax, dword [0x45f688]
push 0
mov dword [0x45eb74], eax
lea eax, [ebp - 0x11d]
push 1
push eax
push 0x81
mov byte [ebp - 0x11d], 0
call dword [0x442244]
call esi
test eax, eax
jne 0x40acf1
nop dword [eax]
mov al, byte [ebp - 0x11d]
cmp al, 5
jb 0x40ad1b
push 1
lea eax, [ebp - 0x11d]
push 0
push eax
call fcn.00440bb0
mov esi, dword [0x45eb2c]
lea eax, [ebp - 0x11d]
add esp, 0xc
mov ecx, esi
push 0
push 1
push eax
push 0x81
call dword [0x442244]
call esi
test eax, eax
je 0x40acb0
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___1__n_n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
mov esi, dword [0x45eb84]
mov ecx, esi
push 0
push 0
push 0
movzx eax, al
push 4
push dword [eax*4 + 0x44a878]
call dword [0x442244]
call esi
push 1
mov ebx, eax
lea eax, [ebp - 0x11d]
push 0
push eax
call fcn.00440bb0
add esp, 0xc
test ebx, ebx
jne 0x40ad5d
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___2__n_n
jmp 0x40acf6
push 0x52
mov dword [edi], ebx
call fcn.0041b33f
mov edi, dword [0x45e350]
mov esi, eax
add esp, 4
mov ecx, edi
mov dword [esi], 0x70747468
push 0
push 0x84ac0300
push 0
push 0
push esi
push ebx
mov dword [esi + 4], 0x2f2f3a73
mov dword [esi + 8], 0x75636573
mov dword [esi + 0xc], 0x6f636572
mov dword [esi + 0x10], 0x63656e6e
mov dword [esi + 0x14], 0x6e6f6974
mov dword [esi + 0x18], 0x6a6f7270
mov dword [esi + 0x1c], 0x73746365
mov dword [esi + 0x20], 0x6f6c622e
mov dword [esi + 0x24], 0x6f632e62
mov dword [esi + 0x28], 0x772e6572
mov dword [esi + 0x2c], 0x6f646e69
mov dword [esi + 0x30], 0x6e2e7377
mov dword [esi + 0x34], 0x732f7465
mov dword [esi + 0x38], 0x6d616574
mov dword [esi + 0x3c], 0x6574696c
mov dword [esi + 0x40], 0x6574532f
mov dword [esi + 0x44], 0x694c6d61
mov dword [esi + 0x48], 0x65566574
mov dword [esi + 0x4c], 0x6f697372
mov word [esi + 0x50], 0x6e
call dword [0x442244]
call edi
mov ebx, eax
test ebx, ebx
jne 0x40ae4a
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___3__n_n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
push 0x52
push 0
push esi
call fcn.00440bb0
add esp, 0xc
push esi
call fcn.0041b33a
jmp 0x40ad05
mov eax, dword [ebp - 0x130]
push 0x104
push 0
mov byte [eax], 1
lea eax, [ebp - 0x11c]
push eax
call fcn.0041f350
mov edi, dword [0x45f418]
lea eax, [ebp - 0x128]
add esp, 0xc
mov dword [ebp - 0x128], 0x104
mov ecx, edi
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x22
push ebx
call dword [0x442244]
call edi
test eax, eax
jne 0x40aec8
push 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00440bb0
mov edi, dword [0x45eb18]
add esp, 0xc
mov ecx, edi
push ebx
call dword [0x442244]
call edi
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___4__n_n
jmp 0x40ae24
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aed0
sub ecx, edx
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x128], ecx
je 0x40af13
push 0x104
push 0
push eax
call fcn.00440bb0
mov edi, dword [0x45eb18]
add esp, 0xc
mov ecx, edi
push ebx
call dword [0x442244]
call edi
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___5__n_n
jmp 0x40ae24
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40af35
test dl, dl
je 0x40af31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40af35
add eax, 2
add ecx, 2
test dl, dl
jne 0x40af15
xor eax, eax
jmp 0x40af3a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af72
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00440bb0
mov edi, dword [0x45eb18]
add esp, 0xc
mov ecx, edi
push ebx
call dword [0x442244]
call edi
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___6__n_n
jmp 0x40ae24
push 0x52
push 0
push esi
call fcn.00440bb0
add esp, 0xc
push esi
call fcn.0041b33a
add esp, 4
lea eax, [ebp - 0x11c]
push 0x104
push 0
push eax
call fcn.00440bb0
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov esi, dword [0x45f64c]
xorps xmm0, xmm0
mov ecx, esi
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0xc], 0
mov byte [eax], 0
lea eax, [ebp - 0x124]
push eax
push 0xa
lea eax, [ebp - 0x14]
mov byte [ebp - 0xa], 0
push eax
push ebx
mov dword [ebp - 0x124], 0
call dword [0x442244]
nop
call esi
mov esi, dword [0x45eb18]
mov edi, eax
push ebx
mov ecx, esi
call dword [0x442244]
call esi
test edi, edi
jne 0x40b005
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___7__n_n
nop
jmp 0x40acf6
cmp dword [ebp - 0x124], 3
jae 0x40b018
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___8__n_n
jmp 0x40acf6
push 4
call fcn.0041b33f
mov ebx, eax
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x134], ebx
mov dword [ebx], 0x393532
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b035
mov esi, dword [ebp - 0x124]
sub ecx, edx
cmp esi, ecx
je 0x40b06a
push str.Unable_to_get_SteamLite_version_data__skipping_update_check___9__n_n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
push ebx
call fcn.0041b33a
jmp 0x40ad05
lea eax, [ebp - 0x14]
xor edi, edi
cmp eax, ebx
je 0x40b0f4
test esi, esi
je 0x40b0f4
mov dword [ebp - 0x130], ebx
sub ebx, eax
dec esi
lea eax, [ebp - 0x14]
add eax, esi
movzx ecx, byte [eax + ebx]
movzx edx, byte [eax]
sub edx, ecx
mov eax, edx
not eax
sar eax, 8
lea ecx, [edx - 1]
sar ecx, 8
and ecx, eax
and edi, ecx
or edi, edx
test esi, esi
jne 0x40b083
mov ebx, dword [ebp - 0x134]
lea eax, [edi - 1]
sar eax, 8
sar edi, 8
inc eax
add eax, edi
je 0x40b0f4
push str.SteamLite_has_been_updated__download_the_new_version__n_n
lea ecx, [esi + 9]
call fcn.00414e80
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.0041b33a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push str.No_SteamLite_update_found__n_n
call fcn.00403aa0
add esp, 4
push ebx
call fcn.0041b33a
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret