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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4548f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push esi
push edi
mov edi, ecx
push 0xa28
mov dword [ebp - 0x24], edi
mov esi, 1
mov dword [ebp - 0x20], 0
call fcn.0043c71a
push 0xa28
mov ebx, eax
push 0
push ebx
call fcn.0043f760
add esp, 0x10
lea eax, [ebp - 0x20]
push 0
push eax
push 0xa28
push ebx
push 0x10000001
call dword [sym.imp.urlmon.dll_UrlMkGetSessionOption]
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x10000001
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
js 0x41119b
test ebx, ebx
jne 0x41117e
xor ecx, ecx
push ecx
push ebx
lea ecx, [edi + 0x44]
call fcn.00411880
jmp 0x41139e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411183
sub ecx, edx
push ecx
push ebx
lea ecx, [edi + 0x44]
call fcn.00411880
jmp 0x41139e
push 0x11c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push dword [ebp - 0x13c]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x140]
push str.Windows_NT__d._d
push eax
call fcn.00411c40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x34c], ax
lea eax, [ebp - 0x34a]
push eax
call fcn.0043f760
mov edi, dword [ebp - 0x1c]
xor eax, eax
add esp, 0x1c
cmp eax, str.User_Agent
je 0x411361
lea eax, [ebp - 0x34c]
test eax, eax
je 0x411361
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x10]
push eax
push str.User_Agent
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411361
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x10], 1
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004113c0
mov byte [ebp - 4], 2
push 0x3b
push dword [ebp - 0x18]
call fcn.0043f0f6
mov ecx, eax
mov eax, dword [ebp - 0x18]
add esp, 8
test ecx, ecx
jne 0x4112be
or ecx, 0xffffffff
jmp 0x4112c0
sub ecx, eax
cmp ecx, 0xffffffff
je 0x41130a
inc ecx
cmp ecx, dword [eax - 0xc]
jge 0x41130a
push ecx
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004115f0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00411450
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411307
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push edi
push esi
add eax, 0x44
push str._s__s_
push eax
call fcn.00411c40
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
add esp, 0x10
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411341
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41137a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41137a
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add eax, 0x44
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
push eax
call fcn.00411c40
add esp, 8
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41139b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x4113ab
push ebx
call fcn.0043ca9f
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret