Function at 0x405c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x41f720
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 0x214]
mov ecx, dword [ebp + 0x218]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [esi + 0x11c], edi
jne 0x405cfd
xor eax, eax
jmp 0x405f3b
mov dword [ebp - 4], edi
push edi
call fcn.00403f70
mov eax, dword [esi + 0x124]
cmp eax, 2
jne 0x405e15
mov ecx, dword [0x43dc30]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 1
add esi, 4
push esi
lea ecx, [ebp - 0x18]
call fcn.00402b80
push 0x421b3c
lea ecx, [ebp - 0x18]
call fcn.00402c80
push ebx
lea ecx, [ebp - 0x18]
call fcn.00402c80
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push edi
mov eax, dword [ebp - 0x18]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e04
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp], bl
mov dword [ebp - 0x2c], 0x208
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp]
push edx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x405df3
lea eax, [ebp]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405da0
sub eax, edx
lea edi, [eax + 1]
push edi
call fcn.0040db80
add esp, 4
lea edx, [ebp]
mov esi, eax
lea esp, [esp]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
test cl, cl
jne 0x405dc0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00403c60
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405de0
add dword [eax], edi
mov byte [ebp], 0
mov dword [ebp - 0x2c], 0x208
add ebx, 1
mov dword [ebp - 0x3c], ebx
jmp 0x405d74
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402a70
jmp 0x405f31
cmp eax, 1
jne 0x405f31
push 0xffffffffffffffff
push str.EnumKeys
mov edx, dword [esi + 0x138]
push edx
lea ecx, [ebp - 0x34]
call fcn.00408160
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00405480
cmp dword [esi + 0x12c], edi
je 0x405f17
mov dword [ebp - 0x38], edi
cmp edi, dword [esi + 0x130]
jae 0x405f17
mov eax, dword [esi + 0x12c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
push edx
push ebx
call fcn.00411354
add esp, 8
test eax, eax
jne 0x405f0f
mov eax, dword [esi + 0x12c]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
mov al, byte [ecx]
cmp al, 0xd
je 0x405f07
cmp al, 0xa
je 0x405f07
test al, al
je 0x405f17
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov al, byte [ebx]
test al, al
je 0x405eac
cmp al, 0x3d
je 0x405eac
add ebx, 1
jmp 0x405e9a
mov esi, ebx
sub esi, ecx
add esi, 1
push esi
call fcn.0040db80
mov edi, eax
push esi
mov edx, dword [ebp - 0x14]
push edx
push edi
call fcn.004105d0
add esp, 0x10
mov byte [edi + esi - 1], 0
push edi
mov ecx, dword [ebp - 0x28]
call fcn.00403c60
mov al, byte [ebx]
test al, al
je 0x405eed
cmp al, 0xd
je 0x405eed
cmp al, 0xa
je 0x405eed
add ebx, 1
mov dword [ebp - 0x20], ebx
jmp 0x405ed7
mov dword [ebp - 0x14], ebx
mov al, byte [ebx]
cmp al, 0xd
je 0x405efa
cmp al, 0xa
jne 0x405eff
add ebx, 1
jmp 0x405eed
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
jmp 0x405e94
add ecx, 1
jmp 0x405e87
add edi, 1
jmp 0x405e4f
mov ecx, esi
call fcn.004057d0
mov dword [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00408240
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 0xc