Function at 0x417ce0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4624b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x417d3e
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x478640
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x417d6d
push 0x2b
push 0x478640
lea ecx, [ebp - 0x10]
call fcn.004076f0
push 0x2001f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov esi, dword [ebp - 0x10]
push esi
push SysReAllocString
call fcn.0040e570
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x417e2a
sub esp, 0x14
lea ecx, [ebp - 0x24]
push esi
push SysReAllocString
call fcn.0040e4a0
test eax, eax
je 0x417ddc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417dc2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x417ea7
push eax
call ebx
jmp 0x417ea7
push 0x2001f
push esi
push SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.0040e570
test eax, eax
je 0x417e25
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417e0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x417ea7
push eax
call ebx
jmp 0x417ea7
mov edi, dword [ebp - 0x24]
jmp 0x417e4e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [edi + 0x48]
mov edi, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x478698
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffffffff
push eax
push 4
push 0
push 0x4786c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x417e77
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417e96
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x417ea4
push edi
call ebx
mov edi, dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.004182c0
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x417f1c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
cmp eax, 0xffffffff
je 0x417f1c
lea eax, [ebp - 0x40]
push eax
call esi
cmp dword [ebp - 0x3c], 0x100
jne 0x417ef8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x100
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x3c], 0x10
je 0x417f1c
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x417ed0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xf003f
push str.SoftwareMicrosoftInternet_ExplorerStyles
push SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0040e570
test eax, eax
je 0x417f67
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x417f9f
push eax
jmp 0x417f9d
mov eax, dword [edi + 0x48]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x417f8c
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x478740
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x417f98
push str.MaxScriptStatements
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x417f9f
push esi
call ebx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4