Function at 0x401349
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x40a004]
xor ebx, ebx
push dword [ebp + 0x14]
xor esi, esi
inc esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], 4
call fcn.004019a0
cmp dword [ebp + 0xc], ebx
pop ecx
pop ecx
jle 0x401396
push dword [ebp + 0x14]
call fcn.004011b0
pop ecx
cmp eax, esi
je 0x401396
or eax, 0xffffffff
jmp 0x4857d6
lea eax, [ebp - 4]
push eax
push dword [0x40a02c]
push ebx
push dword [ebp + 0x14]
push dword [section..data]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40138e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40a008]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40a00c]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40a010]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40a014]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x40a018]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40147c
push dword [ebp - 0x28]
call fcn.00401cf8
pop ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x40a018]
push dword [ebp - 4]
call esi
push dword [ebp - 0x14]
test eax, eax
je 0x40148d
call fcn.00401c1b
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [edi + 0x10]
push eax
call fcn.004019a0
lea eax, [edi + 0x10]
push eax
call fcn.00401b90
lea eax, [eax + edi + 0xf]
push eax
push 0x40822c
call fcn.00401b00
add esp, 0x14
test eax, eax
je 0x4014c5
lea eax, [edi + 0x10]
push 0x40822c
push eax
call fcn.004019b0
pop ecx
pop ecx
push dword [ebp - 0x14]
call fcn.00401c1b
pop ecx
cmp dword [ebp + 0xc], ebx
jne 0x4014e9
push dword [0x40a020]
add edi, 0x114
push edi
call fcn.004019a0
pop ecx
pop ecx
jmp 0x401549
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x40a01c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40147c
push dword [ebp - 0x2c]
call fcn.00401cf8
pop ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x40a01c]
push dword [ebp - 4]
call esi
push dword [ebp - 0x17]
sar byte [eax - 0xbbfffa], cl
invalid
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x485d0c