Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 0x14]
push edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x238]
push eax
push 1
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
je 0x401c47
lea edx, [esp + 0x10]
push 0x413a60
push edx
mov dword [esp + 0x18], 0x41570c
call fcn.004094da
mov edx, dword [esp + 0x23c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0
mov esi, 0x100
push edx
push eax
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x401c8e
lea ecx, [esp + 0x10]
push 0x413a60
push ecx
mov dword [esp + 0x18], 0x4156e4
call fcn.004094da
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x34]
push eax
call fcn.00412cec
lea ecx, [esp + 0x38]
push 0x4156dc
push ecx
call fcn.00409520
add esp, 0xc
test eax, eax
je 0x401cce
lea edx, [esp + 0x34]
push 0x4156dc
push edx
call fcn.00409520
add esp, 8
mov byte [eax], 0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
mov eax, dword [0x4156d4]
mov cx, word [0x4156d8]
dec edi
push 0x4156cc
push edx
mov dword [edi], eax
mov word [edi + 4], cx
call fcn.00409520
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push eax
push 0x80000002
call ebp
test eax, eax
je 0x401d2a
lea edx, [esp + 0x10]
push 0x413a60
push edx
mov dword [esp + 0x18], 0x41568c
call fcn.004094da
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0
push 0x415684
push edx
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x401d63
lea eax, [esp + 0x10]
push 0x413a60
push eax
mov dword [esp + 0x18], 0x415640
call fcn.004094da
movsx eax, byte [esp + 0x35]
movsx ecx, byte [esp + 0x34]
shl eax, 8
add eax, ecx
xor ebp, ebp
test eax, eax
mov dword [esp + 0x20], eax
jg 0x401d99
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 8
mov esi, 0x100
push ebp
lea edx, [esp + 0x2c]
push 0x41563c
push edx
mov dword [esp + 0x20], esi
call fcn.00409000
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0
push edx
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x41561c]
mov byte [esp + eax + 0x134], cl
inc eax
test cl, cl
jne 0x401dcc
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x13c]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ea4
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x100
lea esi, [edi + 0x1c]
push esi
push eax
push eax
mov eax, dword [esp + 0x2c]
push 0x415440
push eax
call ebx
test eax, eax
je 0x401e5c
mov byte [esi], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
lea esi, [edi + 0x11c]
push ecx
push esi
push 0
push 0
push 0x415434
push edx
mov dword [esp + 0x2c], 0x100
call ebx
test eax, eax
je 0x401e87
mov byte [esi], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x401d94
jmp 0x401d7c
lea ecx, [esp + 0x20]
push 0x413a60
push ecx
mov dword [esp + 0x28], 0x4155f8
call fcn.004094da
nop
nop
nop
nop
nop