Function at 0x405430
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fd6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x34]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], 0x6bb468
call fcn.00405be0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4054b4
lea edx, [esp + 0x2c]
mov ecx, dword [0x6bb468]
push edx
lea edx, [esp + 0x38]
push edx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push eax
push ecx
mov dword [esp + 0x58], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x405634
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov edi, eax
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push ebp
push eax
mov eax, dword [edx]
push ebp
push ecx
push eax
mov dword [esp + 0x30], 3
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4054ef
cmp edi, ebp
je 0x405634
jmp 0x40562d
mov ecx, dword [esp + 0x10]
push esi
mov esi, ecx
cmp ecx, ebp
mov dword [esp + 0x30], esi
jne 0x40551c
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x405511
push eax
call fcn.005dd7a4
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x4055f3
mov edx, dword [ebx + 4]
cmp edx, ebp
jne 0x405541
push ecx
call fcn.005dd77b
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00405ea0
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4055f3
mov edi, dword [ebx + 0xc]
cmp ecx, edi
jg 0x405562
mov eax, dword [ebx + 8]
cmp ecx, eax
jle 0x40555a
sub ecx, eax
add eax, edx
push ecx
push eax
call fcn.00405ea0
mov dword [ebx + 8], esi
jmp 0x4055ef
mov eax, dword [ebx + 0x10]
cmp eax, ebp
jne 0x40558d
mov eax, dword [ebx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x405581
mov eax, 4
jmp 0x40558d
cmp eax, 0x400
jle 0x40558d
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x38], eax
jl 0x40559b
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005dd77b
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ebp, eax
mov edx, ecx
mov edi, ebp
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + 8]
mov ecx, esi
sub ecx, eax
add eax, ebp
push ecx
push eax
call fcn.00405ea0
mov edx, dword [ebx + 4]
push edx
call fcn.005dd7a4
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
xor ebp, ebp
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [ecx]
push ebp
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop esi
je 0x405629
push 0xffffffffffffffff
push ebp
mov ecx, ebx
call fcn.00405be0
cmp edi, ebp
je 0x405634
jmp 0x40562d
cmp edi, ebp
je 0x405634
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc