Function at 0x401260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4344e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, byte [esp + 0x50]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x40]
push edi
mov byte [esp + 0x17], 0
mov byte [esp + 0x44], al
call fcn.00401d50
mov esi, dword [esp + 0x60]
mov dword [esp + 0x58], edi
cmp esi, edi
je 0x4012e1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
call fcn.00402220
test al, al
je 0x4012df
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.00402200
xor edi, edi
mov al, byte [esp + 0x60]
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00401d50
mov esi, dword [esp + 0x64]
mov byte [esp + 0x58], 1
cmp esi, edi
je 0x40133e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00402220
test al, al
je 0x40133c
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00402200
xor edi, edi
mov al, byte [ebx]
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00401d50
mov ecx, dword [0x4375d4]
push ecx
push edi
push ebx
lea ecx, [esp + 0x3c]
call fcn.00401b50
mov edx, dword [0x4375d4]
lea eax, [esp + 0x40]
push edx
push edi
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
call fcn.00401fc0
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x401388
mov eax, 0x4375d0
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4013d6
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.00401d50
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.00401d50
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00401d50
xor al, al
jmp 0x4014f9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edi
cmp eax, edi
mov dword [esp + 0x14], 0x406
jne 0x4013ef
mov eax, 0x4375d0
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401466
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x401453
cmp eax, 1
je 0x401453
cmp eax, 4
jne 0x401433
mov byte [esp + 0x13], 1
mov dword [esi + 0x40c], 1
jmp 0x401466
cmp eax, 3
jne 0x401466
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov dword [esi + 0x408], ecx
mov dword [esi + 0x40c], 2
jmp 0x401466
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov byte [edx + esi], 0
mov dword [esi + 0x40c], edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x401495
mov al, byte [ecx - 1]
test al, al
je 0x40148b
cmp al, 0xff
je 0x40148b
dec al
mov byte [ecx - 1], al
jmp 0x401495
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edi
cmp ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x4014c5
mov al, byte [ecx - 1]
test al, al
je 0x4014bb
cmp al, 0xff
je 0x4014bb
dec al
mov byte [ecx - 1], al
jmp 0x4014c5
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], edi
cmp ecx, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
je 0x4014f5
mov al, byte [ecx - 1]
test al, al
je 0x4014eb
cmp al, 0xff
je 0x4014eb
dec al
mov byte [ecx - 1], al
jmp 0x4014f5
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc