Function at 0x414070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bdbd8
push 0x553170
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5d1124]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x248], edx
mov eax, ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
xor edi, edi
mov dword [ebp - 0x24c], edi
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
push 0x104
push edi
lea eax, [ebp - 0x244]
push eax
call fcn.00552b90
push 0x104
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.00552b90
add esp, 0x18
mov dword [ebp - 4], edi
lea eax, [ebp - 0x250]
push eax
push 0x20019
push edi
push dword [ebp - 0x248]
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41412e
or edi, 0xffffffff
jmp 0x414312
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 6
ja case.0x41413b.5
jmp dword [eax*4 + 0x414370]
mov dword [ebp - 0x248], 0x104
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41413b.5
lea ecx, [ebp - 0x244]
call fcn.00414030
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 1
jmp 0x414312
mov dword [ebp - 0x248], 0x104
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41413b.5
lea edi, [ebp - 0x244]
cmp byte [edi], 0
je 0x414276
lea edx, [ebp - 0x140]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4141e2
sub edx, ecx
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4141f0
sub esi, ecx
mov ecx, 0x104
sub ecx, edx
cmp ecx, esi
jb 0x414219
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414210
sub ecx, edx
push ecx
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.00559a51
add esp, 0xc
lea ecx, [ebp - 0x140]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414233
sub ecx, edx
mov eax, 0x104
sub eax, ecx
cmp eax, 1
mov ecx, 1
cmova eax, ecx
push eax
push 0x5b3c0c
lea eax, [ebp - 0x140]
push eax
call fcn.00559a51
add esp, 0xc
push 0
push edi
call fcn.005599a4
add esp, 8
lea edi, [eax + 1]
jmp 0x4141d0
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 1
jmp 0x414312
mov dword [ebp - 0x248], 4
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41413b.5
push dword [ebp - 0x25c]
push 0x5b4528
push dword [ebp - 0x254]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, 1
jmp 0x414312
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push eax
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x24c], edi
nop dword [eax + eax]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x258]
call fcn.0041435c
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret