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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x40bb1020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
push 9
xor esi, esi
push esi
push 0x40ba2bc0
push 0x80000002
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ba3e9c
mov dword [ebp - 0x248], esi
push 0xa0000000
push esi
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x250], esi
push edi
call fcn.40ba2290
test eax, eax
jne 0x40ba3ef2
mov edi, dword [ebp - 0x258]
test dword [edi + 0x20], 0x40000000
jne 0x40ba5c48
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x250], eax
push 0xa0000000
push dword [ebp - 0x250]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x24c]
jmp 0x40ba3eb0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x250], esi
push esi
push dword [ebp - 0x248]
mov dword [ebp - 0x260], 0x90
call edi
test eax, eax
je 0x40ba5cef
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x254], esi
pop edi
pop esi
pop ebx
jne 0x40ba5d88
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.40ba1e8c
leave
ret 4
lea eax, [edi + 0x4c]
push eax
push 0x90
lea eax, [ebp - 0x244]
push eax
call fcn.40ba2f04
cmp dword [edi + 8], esi
jne 0x40ba5c8f
cmp dword [ebp - 0x248], esi
je 0x40ba5c8f
lea eax, [ebp - 0x25c]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ba5c92
jmp 0x40ba5cd5
xor ebx, ebx
inc ebx
push esi
push dword [ebp - 0x258]
call fcn.40ba1f8f
test eax, eax
jne 0x40ba5cc9
cmp dword [ebp - 0x254], esi
jne 0x40ba5cbe
test dword [edi + 0x24], 0x40000000
je 0x40ba5cbe
mov dword [ebp - 0x254], esi
jmp 0x40ba3ed8
mov dword [ebp - 0x254], ebx
jmp 0x40ba3ed8
mov eax, dword [ebp - 0x24c]
mov dword [edi + 8], ebx
dec dword [eax + 0x28]
cmp dword [edi + 8], esi
jne 0x40ba3ecc
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ba3ecc
lea eax, [ebp - 0x25c]
push eax
push 1
push esi
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40ba5d65
push esi
push esi
push esi
push esi
push 0x40ba62f8
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x25c]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x40ba5d65
push 0x40000009
push esi
lea eax, [ebp - 0x124]
push eax
push esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x24c]
call fcn.40ba363b
test eax, eax
jne 0x40ba5d65
mov dword [ebp - 0x254], 1
inc dword [ebp - 0x250]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x250]
jmp 0x40ba3f11
push dword [ebp - 0x24c]
call fcn.40ba3a79
test eax, eax
je 0x40ba3f46
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp - 0x24c]
call fcn.40ba6547
test eax, eax
jne 0x40ba3f46
push dword [ebp - 0x24c]
call fcn.40ba6967
jmp 0x40ba3f46