Function at 0x10024200
Capabilities:
Check os version
Query or enumerate registry value
Reference http user-agent string

Disassembly:
push ebp
mov ecx, 0x45
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x24c]
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x278
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24c], 0x114
test bh, 0x10
je 0x10024300
and bh, 0xef
cmp ebx, 7
je 0x100247f8
mov ebx, 7
mov dword [ebp - 0x258], edx
mov dword [esp], 0x10056400
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x1007d018]
mov edx, dword [ebp - 0x258]
sub esp, 4
test eax, eax
je 0x100244d8
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x260], eax
call eax
mov esi, dword [0x1007d018]
mov edx, dword [ebp - 0x258]
lea edi, [eax + 1]
mov eax, 0x400
cmp edi, 0x400
mov dword [ebp - 0x25c], edi
cmovbe eax, edi
add eax, eax
cmp eax, 4
jae 0x100249c8
test eax, eax
je 0x100242c8
movzx ecx, byte [esi]
mov byte [edx], cl
test al, 2
je 0x100242c8
movzx ecx, word [esi + eax - 2]
mov word [edx + eax - 2], cx
lea esi, [esi]
mov dword [ebp - 0x258], edx
mov dword [esp], 0x10056400
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
sub esp, 4
test esi, esi
je 0x100244f9
mov eax, dword [ebp - 0x25c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0xb
jbe 0x10024a25
test byte [0x10056428], 1
jne 0x10024850
mov dword [esp], edx
mov ebx, 0xb
mov dword [esp + 0xc], 0x1005f892
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [ebp - 0x258], edx
call sym._swprintf_1
mov edx, dword [ebp - 0x258]
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x25c], 0
cmp word [edx], 0
mov dword [ebp - 0x260], eax
je 0x100249f6
mov esi, edx
nop
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x10024370
mov edi, esi
mov eax, 0x400
sub edi, edx
sar edi, 1
sub eax, edi
mov dword [ebp - 0x258], eax
cmp ebx, 0xb
jne 0x10024555
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x264], edx
mov edi, 0x1005f80c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
mov eax, 0x1005f814
sub esp, 4
cmp dword [ebp - 0x23c], 2
cmovne edi, eax
lea eax, [ebp - 0x254]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x264]
mov ecx, eax
sub esp, 8
mov eax, 0x1005f814
test ecx, ecx
je 0x100243fc
mov ecx, dword [ebp - 0x254]
test ecx, ecx
mov ecx, str.__WOW64
cmovne eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 8], str.Windows__s_d._d_s
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x258]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x264], edx
call sym._swprintf_1
mov edx, dword [ebp - 0x264]
cmp word [edx], 0
mov eax, edx
je 0x10024988
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10024450
mov esi, eax
sub esi, edx
sar esi, 1
mov edi, dword [ebp - 0x25c]
test edi, edi
je 0x100246e0
lea edi, [edx + esi*2]
cmp ebx, 8
jbe 0x100245a8
cmp ebx, 0xb
mov ecx, str.__rv:11.0__like_Gecko
mov eax, 0x1005f826
cmove eax, ecx
mov dword [ebp - 0x258], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp], edi
mov eax, dword [ebp - 0x260]
call eax
test byte [0x10056428], 8
mov edx, dword [ebp - 0x258]
lea eax, [esi + eax + 1]
mov dword [ebp - 0x25c], eax
jne 0x10024708
mov eax, dword [ebp - 0x25c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x10056400
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x258]
sub esp, 4
mov dword [ebp - 0x260], eax
cmp ebx, 7
je 0x10024a3e
mov dword [esp], edx
mov ebx, 7
mov dword [esp + 0xc], 0x1005f870
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [ebp - 0x258], edx
call sym._swprintf_1
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], 0
cmp word [edx], 0
jne 0x10024366
mov dword [ebp - 0x258], 0x400
mov esi, edx
xor edi, edi
mov eax, dword [ebp - 0x258]
mov dword [esp], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.compatible__MSIE__u.0_
mov dword [esp + 4], eax
mov dword [ebp - 0x264], edx
call sym._swprintf_1
mov dword [esp], esi
mov eax, dword [ebp - 0x260]
call eax
mov edx, dword [ebp - 0x264]
add edi, eax
mov eax, 0x400
sub eax, edi
lea esi, [edx + edi*2]
mov dword [ebp - 0x258], eax
jmp 0x10024395
lea eax, [ebp - 0x250]
mov dword [ebp - 0x258], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
mov dword [esp], reloc.shlwapi.dll_ParseURLW
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov edx, dword [ebp - 0x258]
mov ecx, eax
sub esp, 0xc
mov eax, 0x1005f826
test ecx, ecx
jne 0x10024489
xor ebx, ebx
mov edi, edx
mov edx, ebx
jmp 0x100245fb
add ebx, dword [ebp - 0x138]
add edx, 1
mov esi, ebx
lea eax, [esi + esi]
mov ebx, 0x3b
mov dword [ebp - 0x258], edx
lea ecx, [edi + eax]
mov word [ecx], bx
lea ebx, [esi + 2]
mov dword [ebp - 0x264], ecx
mov ecx, 0x20
mov word [edi + eax + 2], cx
mov ecx, 0x3fe
sub ecx, ebx
mov dword [esp + 4], edx
mov dword [ebp - 0x138], ecx
lea ecx, [edi + eax + 4]
lea eax, [ebp - 0x138]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], ecx
mov dword [ebp - 0x25c], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
sub esp, 0x20
test eax, eax
je 0x100245f0
mov eax, edi
mov dword [ebp - 0x25c], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x258]
mov eax, 0x1005f826
sub esp, 4
test ebx, ebx
cmovne edi, dword [ebp - 0x264]
cmove esi, ecx
jmp 0x10024489
mov dword [ebp - 0x258], edx
add esi, 0xd
mov dword [esp + 4], str.__Trident_7.0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov edx, dword [ebp - 0x258]
jmp 0x1002446d
mov eax, edx
shr eax, 0x10
je 0x10024890
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x258], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, 0x1005f6d7
sub esp, 8
test eax, eax
jne 0x100248a5
mov edx, dword [ebp - 0x258]
cmp word [edx], 0
je 0x10024a07
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [edx + ecx*2 + 2], 0
jne 0x10024750
mov ebx, 0x224c
mov dword [ebp - 0x258], edx
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], bx
lea ebx, [ebp - 0x136]
jmp 0x100247b5
cmp ax, 9
je 0x10024970
cmp ax, 0xa
jne 0x100248e8
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea eax, [ecx - 1]
cmp ebx, edi
ja 0x10024990
test ecx, ecx
jle 0x10024990
mov ecx, eax
add dword [ebp - 0x258], 2
mov eax, dword [ebp - 0x258]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x10024958
jbe 0x10024780
cmp ax, 0x22
je 0x10024940
cmp ax, 0x5c
jne 0x100248db
mov eax, 0x5c5c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100247a0
mov dword [ebp - 0x25c], 1
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x260], eax
mov dword [esp], edx
mov dword [esp + 0xc], 0x1005f870
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [ebp - 0x258], edx
call sym._swprintf_1
mov edx, dword [ebp - 0x258]
cmp word [edx], 0
jne 0x10024366
jmp 0x10024547
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Unsupported_version__u_n
mov dword [esp + 8], str.obtain_user_agent
mov dword [esp + 4], 0x10056428
mov dword [esp], 0
mov dword [ebp - 0x258], edx
call sym._wine_dbg_log.constprop.0_15
mov edx, dword [ebp - 0x258]
jmp 0x10024316
movzx edx, dx
mov dword [esp], 0x1005f6e1
mov dword [esp + 4], edx
call sym._wine_dbg_sprintf_12
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Using_user_agent__s_n
mov dword [esp + 8], str.obtain_user_agent
mov dword [esp + 4], 0x10056428
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_15
mov eax, dword [ebp - 0x25c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x100249ec
mov esi, eax
mov byte [ebx], 0x5c
add ebx, 5
shr si, 0xc
movzx esi, si
movzx edx, byte [esi + str.0123456789abcdefUrlMkSetSessionOption]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ebx - 4], dl
movzx edx, byte [esi + str.0123456789abcdefUrlMkSetSessionOption]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefUrlMkSetSessionOption]
and esi, 0xf
mov byte [ebx - 3], dl
movzx edx, byte [esi + str.0123456789abcdefUrlMkSetSessionOption]
mov byte [ebx - 1], al
mov byte [ebx - 2], dl
jmp 0x100247a0
mov eax, 0x225c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100247a0
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100247a0
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x100247a0
xor esi, esi
jmp 0x1002445f
mov byte [ebx], 0x22
test eax, eax
jle 0x10024a20
mov esi, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ecx, eax
jmp 0x100248a5
mov ecx, dword [esi]
lea edi, [edx + 4]
and edi, 0xfffffffc
mov dword [edx], ecx
mov ecx, dword [esi + eax - 4]
mov dword [edx + eax - 4], ecx
mov ecx, edx
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x100242c8
mov byte [ebx], al
add ebx, 1
jmp 0x100247a0
mov dword [ebp - 0x258], 0x400
mov esi, edx
jmp 0x10024395
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ebx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ebx + 1]
jmp 0x100249ab
cmp ebx, 6
jbe 0x10024241
cmp ebx, 8
ja 0x10024a4d
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 0
jmp 0x1002480d
mov dword [esp], edx
mov dword [esp + 0xc], 0x1005f892
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [ebp - 0x258], edx
call sym._swprintf_1
mov edx, dword [ebp - 0x258]
cmp word [edx], 0
je 0x10024a99
mov dword [ebp - 0x25c], 0
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x260], eax
jmp 0x10024366
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov esi, edx
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x260], eax
jmp 0x10024379