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

Disassembly:
push 0x258
mov eax, 0x44292c
call fcn.00441dec
mov esi, ecx
mov dword [ebp - 0x230], esi
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push 0x404098
push SysReAllocString
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420168
mov edi, dword [ebp - 0x21c]
xor ecx, ecx
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
push 0x20019
push ecx
push dword [esi + 0x20]
mov dword [ebp - 0x21c], ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42014c
mov ebx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x258], ebx
call fcn.0041fa77
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x21c], eax
mov ecx, 0x4041c8
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041f78c
test eax, eax
js 0x42013a
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x220]
push eax
call fcn.0041f78c
test eax, eax
js 0x42013a
mov esi, dword [ebp - 0x220]
add esi, dword [ebp - 0x21c]
cmp esi, dword [ebp - 0x21c]
jb 0x42013a
xor eax, eax
mov dword [ebp - 0x22c], eax
push esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.004201fd
test al, al
je 0x420122
push dword [ebp - 0x234]
push 0x4041c8
push esi
push dword [ebp - 0x22c]
call fcn.00405fdb
add esp, 0x10
test eax, eax
js 0x420122
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
push 0x2001f
push ecx
push dword [ebp - 0x22c]
mov dword [ebp - 0x21c], ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4200ee
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
push ecx
push ecx
push 0x2001f
push 1
push ecx
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x230]
push dword [ecx + 0x20]
lea ecx, [ebp - 0x240]
push eax
call fcn.004084dc
test eax, eax
jne 0x4200e8
xor edx, edx
mov eax, edx
mov dword [ebp - 0x228], edx
mov esi, edx
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
push ecx
push edx
lea ecx, [ebp - 0x230]
push ecx
push edx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x420011
cmp eax, 0xea
jne 0x420071
cmp dword [ebp - 0x224], 0xffffffff
ja 0x4200d5
push dword [ebp - 0x224]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_malloc
mov esi, eax
mov dword [ebp - 0x220], esi
pop ecx
test esi, esi
je 0x4200d5
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x104
push eax
push esi
lea eax, [ebp - 0x230]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42009e
push dword [ebp - 0x224]
push esi
push dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x228]
jmp 0x4200b0
cmp eax, 0x103
je 0x4200d5
mov eax, dword [ebp - 0x228]
cmp eax, 0x64
ja 0x4200d5
inc eax
mov byte [ebp - 4], 5
push esi
mov dword [ebp - 0x228], eax
call fcn.0044177c
mov eax, dword [ebp - 0x228]
xor edx, edx
pop ecx
mov dword [ebp - 0x220], edx
jmp 0x41ffc4
push esi
mov byte [ebp - 4], 5
call fcn.0044177c
xor eax, eax
mov dword [ebp - 0x220], eax
pop ecx
mov esi, dword [ebp - 0x240]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x42010b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x420122
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x22c]
call fcn.0044177c
xor eax, eax
pop ecx
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.0041324b
xor eax, eax
mov byte [ebp - 4], al
test ebx, ebx
je 0x420166
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x258], ebx
jmp 0x420168
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42017d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x264], ebx
call fcn.00441d96
ret