Function at 0x417b60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x430563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc34
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x30], ebx
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc50], 3
mov byte [esp + 0x20], al
call fcn.0040aae0
mov edi, 0x43e7b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43e7b0
lea ecx, [esp + 0x24]
call fcn.0040ad80
mov ecx, 0x2ff
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x2c], 0xc00
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0xc60]
mov byte [esp + 0xc4c], 5
cmp ebp, ebx
mov eax, 0x4313b4
je 0x417bfa
mov eax, ebp
mov edx, dword [esp + 0xc58]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417d09
lea ecx, [esp + 0x14]
call fcn.00418330
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x417d09
mov eax, dword [esp + 0xc70]
cmp eax, ebx
jne 0x417c49
mov eax, 0x4313b4
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
push edx
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x417cdb
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x417cf4
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.0040aae0
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040ad80
mov edx, dword [0x4313b0]
lea eax, [esp + 0x34]
push edx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xc58], 6
call fcn.0040a8e0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xc50], 5
call fcn.0040aae0
jmp 0x417cf4
mov ecx, dword [0x4313b0]
lea edx, [esp + 0xc7c]
push ecx
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.0040a8e0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417d21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x417d21
mov eax, dword [0x4313b0]
lea ecx, [esp + 0xc7c]
push eax
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.0040a8e0
mov esi, dword [esp + 0xc54]
mov dl, byte [esp + 0x1c]
push ebx
mov ecx, esi
mov byte [esi], dl
call fcn.0040aae0
mov eax, dword [0x4313b0]
lea ecx, [esp + 0x1c]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040a8e0
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417d64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xc50], 3
call fcn.0040aae0
cmp ebp, ebx
je 0x417d97
mov al, byte [ebp - 1]
cmp al, bl
je 0x417d8d
cmp al, 0xff
je 0x417d8d
dec al
mov byte [ebp - 1], al
jmp 0x417d97
dec ebp
push ebp
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0xc70]
cmp ecx, ebx
je 0x417dbe
mov al, byte [ecx - 1]
cmp al, bl
je 0x417db4
cmp al, 0xff
je 0x417db4
dec al
mov byte [ecx - 1], al
jmp 0x417dbe
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0xc80]
cmp ecx, ebx
je 0x417de5
mov al, byte [ecx - 1]
cmp al, bl
je 0x417ddb
cmp al, 0xff
je 0x417ddb
dec al
mov byte [ecx - 1], al
jmp 0x417de5
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0xc44]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc40
ret