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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4508a0
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.0043b0fb
push 0xa28
mov ebx, eax
push 0
push ebx
call fcn.0043da70
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 0x415a6b
test ebx, ebx
jne 0x415a4e
xor ecx, ecx
push ecx
push ebx
lea ecx, [edi + 0x44]
call fcn.00409e60
jmp 0x415c6e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415a53
sub ecx, edx
push ecx
push ebx
lea ecx, [edi + 0x44]
call fcn.00409e60
jmp 0x415c6e
push 0x11c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0043da70
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.00415fa0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x34c], ax
lea eax, [ebp - 0x34a]
push eax
call fcn.0043da70
mov edi, dword [ebp - 0x1c]
xor eax, eax
add esp, 0x1c
cmp eax, str.User_Agent
je 0x415c31
lea eax, [ebp - 0x34c]
test eax, eax
je 0x415c31
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 SysReAllocStringLen
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x415c31
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.0040e700
mov byte [ebp - 4], 2
push 0x3b
push dword [ebp - 0x18]
call fcn.0043d462
mov ecx, eax
mov eax, dword [ebp - 0x18]
add esp, 8
test ecx, ecx
jne 0x415b8e
or ecx, 0xffffffff
jmp 0x415b90
sub ecx, eax
cmp ecx, 0xffffffff
je 0x415bda
inc ecx
cmp ecx, dword [eax - 0xc]
jge 0x415bda
push ecx
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415da0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00415c90
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 0x415bd7
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.00415fa0
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 0x415c11
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 0x415c4a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x415c4a
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.00415fa0
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 0x415c6b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x415c7b
push ebx
call fcn.0043b668
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