Function at 0x405f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df062
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x509018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x240], 0
mov ecx, esi
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
cmp ebx, 8
jb 0x405f74
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 7
push str.Default
call fcn.00404580
add esp, 8
test eax, eax
je 0x405f93
mov edi, esi
cmp ebx, 8
jb 0x405f93
mov edi, dword [esi]
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x244], eax
test ecx, ecx
je 0x406215
push ecx
call fcn.004c5d0c
mov esi, eax
add esp, 4
mov dword [ebp - 0x220], esi
test esi, esi
je 0x406215
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x214]
call fcn.00405d00
mov ecx, dword [ebp - 0x224]
cmp ecx, eax
je 0x406021
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x406018
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00403110
mov eax, dword [ebp - 0x214]
cmp eax, 4
jne 0x4060ee
push dword [esi]
lea eax, [ebp - 0x210]
push 0x5014fc
push 0x100
push eax
call fcn.00402720
add esp, 0x10
mov dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x228], 7
lea edx, [ebp - 0x210]
mov word [ebp - 0x23c], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406071
sub edx, ecx
lea eax, [ebp - 0x210]
sar edx, 1
lea ecx, [ebp - 0x23c]
push edx
push eax
call fcn.00403110
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00402d30
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40620c
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406237
push edx
push ecx
call fcn.004bda5c
add esp, 8
jmp 0x40620c
cmp eax, 1
je 0x4061e3
cmp eax, 2
je 0x4061e3
cmp eax, 3
jne 0x40620c
mov edi, dword [ebp - 0x218]
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov dword [ebp - 0x240], 2
test edi, edi
jle 0x406196
mov bl, byte [esi]
lea esi, [esi + 1]
mov cl, bl
mov al, 9
shr cl, 4
dec edi
cmp al, cl
sbb al, al
add cl, 0x30
and al, 0x27
add al, cl
lea ecx, [ebp - 0x23c]
movzx eax, al
push eax
call fcn.0040a510
mov al, 9
lea ecx, [ebp - 0x23c]
and bl, 0xf
cmp al, bl
sbb al, al
and al, 0x27
add al, 0x30
add al, bl
movzx eax, al
push eax
call fcn.0040a510
test edi, edi
jg 0x406147
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00402d30
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40620c
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406237
jmp 0x4060df
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061f0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x21c]
push esi
call fcn.00403110
push esi
call fcn.004c5b44
add esp, 4
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
call fcn.004c59a2
int3