Function at 0x499040
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500b68
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov ecx, dword [ebp - 0x23c]
add ecx, 0xb28
call fcn.00450970
test eax, eax
jne 0x49908b
jmp 0x49952d
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
push 0xf013f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths
push reloc.upgrade.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 2
jne 0x4990ee
push 0
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths
push reloc.upgrade.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4990fc
jmp 0x49952d
lea ecx, [ebp - 0x248]
call fcn.00410cf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.004279e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp - 0x23c]
add ecx, 0xb28
call fcn.004a1640
jmp 0x49914b
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x234]
call fcn.004a1580
lea ecx, [ebp - 0x278]
push ecx
mov ecx, dword [ebp - 0x23c]
add ecx, 0xb28
call fcn.004a15e0
push eax
lea edx, [ebp - 0x234]
push edx
call fcn.004a51a0
add esp, 8
movzx eax, al
test eax, eax
je 0x49923c
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x248]
call fcn.0041a220
push eax
lea ecx, [ebp - 0x234]
call fcn.004a15b0
push eax
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x248]
call fcn.0041a280
mov ecx, eax
call fcn.0041a350
movzx eax, al
test eax, eax
je 0x4991c2
jmp 0x499137
lea ecx, [ebp - 0x234]
call fcn.004a15b0
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.00403ae0
cmp eax, 3
jge 0x4991fd
push 0x526678
lea ecx, [ebp - 0x228]
call fcn.004038f0
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x248]
call fcn.004131e0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x270]
call fcn.004507e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.004036f0
jmp 0x499137
mov dword [ebp - 0x258], 0x52c31c
lea ecx, [ebp - 0x230]
call fcn.00403790
mov byte [ebp - 4], 3
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x264], 0
mov ecx, 1
test ecx, ecx
je 0x499408
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
push str._s_d
lea edx, [ebp - 0x230]
push edx
call fcn.0040e1d0
add esp, 0x10
mov eax, dword [ebp - 0x240]
add eax, 1
mov dword [ebp - 0x240], eax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004d43c0
add esp, 0xc
mov dword [ebp - 0x260], 0x208
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x264]
push edx
push 0
lea ecx, [ebp - 0x230]
call fcn.004038a0
push eax
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x499320
jmp 0x499408
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.004050b0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x248]
call fcn.0041a220
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x248]
call fcn.0041a280
mov ecx, eax
call fcn.0041a350
mov byte [ebp - 0x219], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.004036f0
movzx edx, byte [ebp - 0x219]
test edx, edx
je 0x49938e
jmp 0x499269
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.004050b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x248]
call fcn.004131a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.004036f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x254]
call fcn.004050b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x270]
call fcn.004a16a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.004036f0
jmp 0x499269
mov dword [ebp - 0x22c], 0
jmp 0x499423
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x270]
call fcn.00450970
cmp dword [ebp - 0x22c], eax
jge 0x4994df
mov eax, dword [ebp - 0x22c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x258]
push ecx
push str._s_d
lea edx, [ebp - 0x230]
push edx
call fcn.0040e1d0
add esp, 0x10
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x270]
call fcn.004701b0
push eax
lea ecx, [ebp - 0x238]
call fcn.0040e000
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x238]
call fcn.00403ae0
shl eax, 1
push eax
lea ecx, [ebp - 0x238]
call fcn.00470b10
push eax
push 1
push 0
lea ecx, [ebp - 0x230]
call fcn.004038a0
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x220], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x238]
call fcn.004054f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.004036f0
jmp 0x499414
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004036f0
xor edx, edx
jne 0x49923c
cmp dword [ebp - 0x224], 0
je 0x49950c
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.004279a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0040f570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret