Function at 0x407d20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x407fef
push 0xffffffffffffffff
push edi
call fcn.0040aaf0
push edi
push edi
mov edx, dword [esi + 0x14]
push edi
push edi
push edi
lea eax, [ebp - 0x34]
push edi
lea ecx, [ebp - 0x2c]
push eax
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x407d80
mov dword [ebp - 0x2c], edi
mov eax, dword [0x6754d4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x408000
push 0x64f6fc
lea ecx, [ebp - 0x18]
call fcn.0059aec6
push 0x64f6e8
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
mov ebx, 1
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f6e0
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.0059aec6
push 0x64f6d0
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f6c8
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.0059aec6
push 0x64f6c0
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f6b8
mov dword [edi + 8], edx
lea ecx, [ebp - 0x18]
call fcn.0059aec6
push 0x64f6a8
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f6a0
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.0059aec6
push 0x64f690
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f688
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.0059aec6
push 0x64f670
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x1c]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.0059ae76
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.0059ae76
mov edx, dword [ebp - 0x14]
push 0x64f668
lea ecx, [ebp - 0x18]
mov dword [edi + 8], edx
call fcn.0059aec6
push 0x64f668
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
push eax
call fcn.0040aaf0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
lea edx, [edi + edi*2]
push ecx
lea ecx, [eax + edx*4]
call fcn.0040ac70
mov ecx, esi
call fcn.00407a90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0059ad3d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
xor ebx, ebx
cmp ebx, edi
jne 0x40812a
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x13c]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
cmp ebx, edi
jne 0x40811c
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push edi
push 0xf003f
push edi
push 0x679a28
lea eax, [ebp - 0x13c]
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40811c
lea edx, [ebp - 0x13c]
lea ecx, [ebp - 0x18]
push edx
call fcn.0059aec6
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x64f5d8
push ecx
call edi
test eax, eax
jne 0x40811c
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push edx
call fcn.0059b10a
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push eax
push 0
push 0
push 0x64f5d8
push edx
call edi
test eax, eax
jne 0x40811c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push eax
push ecx
push 0
push 0
push 0x64f5d4
push edx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x4080df
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x4080e6
mov dword [ebp - 0x14], 1
mov edi, dword [esi + 8]
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.0040aaf0
mov eax, dword [esi + 4]
lea edx, [edi + edi*2]
lea ecx, [ebp - 0x1c]
lea edi, [eax + edx*4]
push ecx
mov ecx, edi
call fcn.0059ae76
lea edx, [ebp - 0x18]
lea ecx, [edi + 4]
push edx
call fcn.0059ae76
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x28]
inc eax
xor edi, edi
mov dword [ebp - 0x28], eax
jmp 0x408008
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x408138
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64f6e8
push 0x64f6fc
mov ecx, esi
call fcn.00407bc0
push 0x64f6d0
push 0x64f6e0
mov ecx, esi
call fcn.00407bc0
push 0x64f6c0
push 0x64f6c8
mov ecx, esi
call fcn.00407bc0
push 0x64f6a8
push 0x64f6b8
mov ecx, esi
call fcn.00407bc0
push 0x64f690
push 0x64f6a0
mov ecx, esi
call fcn.00407bc0
push 0x64f668
push 0x64f668
mov ecx, esi
call fcn.00407bc0
mov byte [ebp - 4], 3
jmp 0x407fdb