Function at 0x4af940
Capabilities:
Query or enumerate registry value
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534246
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x57d718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x344], esi
call fcn.004ad6a0
test al, al
je 0x4afd80
mov ecx, esi
lea eax, [esi + 0x610]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.0044fb80
movups xmm0, xmmword [0x564390]
lea eax, [esi + 0x618]
mov ecx, esi
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004adc80
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0
push eax
push 1
push 0
push 0x54f5b8
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.1__Trident_5.0__SMT_
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4afb21
cmp dword [ebp - 0x338], eax
je 0x4afb21
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00501330
add esp, 0xc
mov dword [ebp - 0x33c], 0x208
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x54f604
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4afb15
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004211c0
push 0
push 0x54f614
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
jne 0x4afa78
mov edi, str.Mozilla_5.0__Windows_NT_10.0_Trident_7.0_rv:11.0__like_Gecko
jmp 0x4afb0a
push 0
push 0x54f65c
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
jne 0x4afa95
mov edi, str.Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_10.0_Trident_7.0_
jmp 0x4afb0a
push 0
push 0x54f6ac
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
jne 0x4afab2
mov edi, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_7.1__Trident_5.0_
jmp 0x4afb0a
push 0
push 0x54f6f8
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
jne 0x4afacf
mov edi, str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
jmp 0x4afb0a
push 0
push 0x54f740
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
jne 0x4afaec
mov edi, str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.1__Trident_5.0__SMT_
jmp 0x4afb0a
push 0
push 0x54f748
lea ecx, [ebp - 0x230]
call fcn.004b1340
test eax, eax
mov ecx, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SMT_
cmovne ecx, edi
mov edi, ecx
lea ecx, [ebp - 0x230]
call fcn.004086c0
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x54f788
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x34c], eax
test eax, eax
je 0x4afd30
push 0x54f7a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x348], eax
test eax, eax
je 0x4afd24
mov ecx, edi
lea eax, [ebp - 0x330]
mov dword [ebp - 0x334], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4afb65
sub ecx, edx
lea eax, [ebp - 0x330]
push 0x80
push eax
lea eax, [ebp - 0x334]
lea esi, [ecx + 1]
push esi
push eax
mov dword [ebp - 0x33c], esi
call fcn.00428170
add esp, 0x10
push esi
push dword [ebp - 0x334]
push esi
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x340], ecx
test eax, eax
jne 0x4afc17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4afc11
push 0
push 0
push esi
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x330]
push 0x80
push eax
lea eax, [ebp - 0x334]
push esi
push eax
call fcn.00428170
add esp, 0x10
push esi
push dword [ebp - 0x334]
push dword [ebp - 0x33c]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x4afc17
mov ecx, dword [ebp - 0x340]
test ecx, ecx
jne 0x4afd9b
mov edx, dword [ebp - 0x334]
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x220], ecx
mov ecx, edx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afc46
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.0040c2a0
mov eax, dword [ebp - 0x334]
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x4afc7f
push eax
call fcn.005048e6
add esp, 4
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
mov eax, dword [ebp - 0x344]
cmovae esi, dword [ebp - 0x230]
add eax, 0x6b6
push 0x800
push 0
push eax
mov dword [ebp - 0x340], eax
call fcn.00501330
add esp, 0xc
test esi, esi
je 0x4afce0
cmp word [esi], 0
je 0x4afce0
mov ecx, dword [ebp - 0x340]
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4afcd0
mov esi, dword [ebp - 0x348]
push 0
push 0
push 0
push 0x10000002
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4afcf8
push 0
sub ecx, edx
push ecx
push edi
push 0x10000001
call esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.004086c0
mov esi, dword [ebp - 0x344]
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
mov ecx, esi
call fcn.004b0cf0
cmp byte [esi + 0x6ac], 0
je 0x4afd6a
lea ecx, [esi + 0x628]
call fcn.0044dec0
test al, al
jne 0x4afd6a
push 0
push 0
lea ecx, [esi + 0x628]
call fcn.00419000
push eax
mov ecx, esi
call fcn.004b0550
jmp 0x4afd7e
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0
push str.UIWebbrowser_Navigate
push esi
call fcn.00453fd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bddc0
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x334]
call fcn.00413d20
add esp, 0xc
call fcn.004148c0
int3