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

Disassembly:
push ebp
mov ecx, 0x45
push edi
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x15c
lea ebp, [esp + 0x3c]
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], 0x114
test esi, 0x1000
je 0x703a34c0
and esi, 0xffffefff
cmp esi, 7
je 0x703a37d0
mov dword [esp], 0x703d8400
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x703f2018]
sub esp, 4
test eax, eax
je 0x703a3850
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0x24], eax
call eax
lea esi, [eax + 1]
mov eax, 0x400
cmp esi, eax
cmovbe eax, esi
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [0x703f2018]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov dword [esp], 0x703d8400
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test esi, esi
jne 0x703a365d
xor eax, eax
mov esi, 7
mov dword [esp + 0x28], eax
jmp 0x703a37e1
cmp esi, 0xb
jbe 0x703a3897
test byte [0x703d8428], 1
jne 0x703a3820
mov dword [esp + 0xc], 0x703e16ec
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call fcn.703a2ea0
cmp word [ebx], 0
je 0x703a386e
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0x28], 0
mov esi, 0xb
mov dword [esp + 0x24], eax
mov edi, ebx
lea esi, [esi]
nop
add edi, 2
cmp word [edi], 0
jne 0x703a3520
mov ecx, edi
mov edx, 0x400
sub ecx, ebx
sar ecx, 1
sub edx, ecx
cmp esi, 0xb
je 0x703a3570
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.compatible__MSIE__u.0_
mov dword [esp + 0x20], ecx
call fcn.703a2ea0
mov dword [esp], edi
mov eax, dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x20]
mov edx, 0x400
add eax, ecx
lea edi, [ebx + eax*2]
sub edx, eax
mov dword [esp + 0x20], edx
mov dword [esp], ebp
mov ebp, 0x703e1690
call dword [sym.imp.kernel32.dll_GetVersionExW]
mov eax, 0x703e1688
sub esp, 4
cmp dword [esp + 0x4c], 2
mov dword [esp], 0xffffffff
cmove ebp, eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov ecx, eax
sub esp, 8
mov eax, 0x703e1690
test ecx, ecx
mov edx, dword [esp + 0x20]
je 0x703a35c7
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov ecx, str.__WOW64
cmovne eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], str.Windows__s_d._d_s
mov dword [esp + 4], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp], edi
mov dword [esp + 0x10], eax
call fcn.703a2ea0
cmp word [ebx], 0
mov eax, ebx
je 0x703a3890
nop
add eax, 2
cmp word [eax], 0
jne 0x703a3600
mov edi, eax
sub edi, ebx
sar edi, 1
mov edx, dword [esp + 0x28]
test edx, edx
je 0x703a37b0
lea edx, [edi + edi]
lea ebp, [ebx + edx]
cmp esi, 8
jbe 0x703a36a8
mov eax, str.__rv:11.0__like_Gecko
cmp esi, 0xb
jne 0x703a37a0
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [esp + 0x24]
mov dword [esp], ebp
call eax
mov esi, eax
test byte [0x703d8428], 8
jne 0x703a3670
lea esi, [esi + edi + 1]
add esp, 0x15c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.703a3110
mov dword [esp + 0xc], str.Using_user_agent__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.obtain_user_agent
mov dword [esp + 4], 0x703d8428
mov dword [esp], 3
call fcn.703a33b0
jmp 0x703a3659
lea eax, [esp + 0x34]
mov dword [esp + 0x20], 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]
sub esp, 0xc
test eax, eax
jne 0x703a37a0
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov ebx, edi
jmp 0x703a36f4
mov ebx, dword [esp + 0x38]
add ebp, 1
add ebx, esi
lea eax, [ebx + ebx]
mov ecx, dword [esp + 0x28]
lea esi, [ebx + 2]
mov edi, dword [0x703e1e50]
lea edx, [ecx + eax]
mov dword [edx], edi
mov edi, 0x3fe
sub edi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], edi
lea edi, [ecx + eax + 4]
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
mov edx, dword [esp + 0x20]
je 0x703a36e8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], edi
mov edi, ebx
mov dword [esp + 0x2c], ebp
mov ebx, dword [esp + 0x28]
mov ebp, edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x703e16d0
sub esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
cmove edi, esi
cmove ebp, dword [esp + 0x20]
jmp 0x703a3638
mov eax, 0x703e16d0
jmp 0x703a3638
mov dword [esp + 4], str.__Trident_7.0
add edi, 0xd
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
jmp 0x703a361b
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0x703e1848
mov edi, ebx
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call fcn.703a2ea0
xor ecx, ecx
cmp word [ebx], 0
mov edx, 0x400
jne 0x703a3516
jmp 0x703a353b
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unsupported_version__u_n
mov dword [esp + 8], str.obtain_user_agent
mov dword [esp + 4], 0x703d8428
mov dword [esp], 0
call fcn.703a33b0
jmp 0x703a34d6
mov dword [esp], 0x703d8400
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 4
mov dword [esp + 0x24], eax
jmp 0x703a34a7
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov edi, ebx
mov edx, 0x400
mov dword [esp + 0x28], 0
mov esi, 0xb
mov dword [esp + 0x24], eax
jmp 0x703a3570
xor edi, edi
jmp 0x703a360f
cmp esi, 6
ja 0x703a38d8
mov dword [esp], 0x703d8400
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x703f2018]
push esi
test eax, eax
je 0x703a3850
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0x24], eax
call eax
lea esi, [eax + 1]
mov eax, 0x400
cmp esi, eax
cmovbe eax, esi
add eax, eax
jmp 0x703a347a
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], eax
cmp esi, 8
jbe 0x703a37e1
mov dword [esp + 0xc], 0x703e16ec
mov dword [esp + 8], str.Mozilla__s__
mov dword [esp + 4], 0x400
mov dword [esp], edx
call fcn.703a2ea0
cmp word [ebx], 0
jne 0x703a3516
mov edi, ebx
jmp 0x703a3529