Function at 0x46eb2f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x268
mov eax, 0x4adbd3
call fcn.004a95a1
mov edi, ecx
mov dword [ebp - 0x218], edi
push edi
mov dword [ebp - 0x274], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x270], 1
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x26c], ecx
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
push eax
push 0x20219
push ecx
push 0x40eb60
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x23c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x46f1d1
mov ebx, dword [ebp - 0x23c]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x26c], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x25c], 0x100
push eax
push dword [ebp - 0x248]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x46f1c0
test esi, esi
jne 0x46f17c
push 0x40eb60
lea ecx, [ebp - 0x224]
call fcn.0041706d
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x46ec16
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00416cb5
xor ecx, ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 3
push eax
push 0x20219
push ecx
push dword [ebp - 0x224]
mov dword [ebp - 0x244], ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46ecd4
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x234]
push 0x4b8970
mov dword [ebp - 0x258], esi
call fcn.00417475
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
mov edx, 0x40ed08
lea ecx, [ebp - 0x258]
call fcn.00495d6d
test eax, eax
je 0x46ecf6
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.004174b0
test esi, esi
je 0x46ecd4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x258], esi
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.004174b0
test ebx, ebx
je 0x46f16f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46f16f
push 0x4b8970
lea ecx, [ebp - 0x238]
call fcn.00417475
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
mov edx, 0x40ed2c
lea ecx, [ebp - 0x258]
call fcn.00495d6d
test eax, eax
je 0x46ed38
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.004174b0
jmp 0x46ecb3
call fcn.0046f315
test al, al
je 0x46ed54
call fcn.0046e640
test al, al
jne 0x46ed54
xor esi, esi
mov dword [ebp - 0x21c], esi
jmp 0x46ed77
lea eax, [ebp - 0x21c]
push eax
push 0x40ed44
lea ecx, [ebp - 0x258]
call fcn.00424ad7
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
push 0x40ed70
lea ecx, [ebp - 0x258]
call fcn.00424ad7
neg eax
mov byte [ebp - 0x240], 1
push 0x4b8970
sbb eax, eax
lea ecx, [ebp - 0x228]
not eax
and dword [ebp - 0x220], eax
xor eax, eax
mov byte [ebp - 0x213], al
call fcn.00417475
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 6
add edi, 0x18
push eax
mov ecx, edi
call fcn.00463752
test eax, eax
je 0x46ede1
add eax, 4
lea ecx, [ebp - 0x228]
push eax
call fcn.0041715f
mov eax, dword [ebp - 0x228]
cmp dword [eax - 0xc], 0
je 0x46ee26
push 0x4044b4
push eax
mov byte [ebp - 0x213], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
mov ecx, edi
sbb al, al
inc al
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x210]
push eax
call fcn.00463752
test eax, eax
je 0x46ee26
push eax
mov ecx, edi
call fcn.0047050b
mov esi, dword [ebp - 0x234]
xor eax, eax
push 0x4044b4
push esi
mov dword [ebp - 0x260], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete cl
mov byte [ebp - 0x211], cl
test eax, eax
je 0x46eea7
lea eax, [ebp - 0x24c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x260]
push eax
push 1
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x46eea7
mov byte [ebp - 0x211], 1
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x46eedb
test byte [ecx + 0x1c], 2
je 0x46eedb
cmp byte [ecx + 0x19], 5
jb 0x46eedb
push eax
push esi
push dword [ecx + 0x14]
mov edx, 0x40ee1c
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.00417794
cmp byte [ebp - 0x211], 0
jne 0x46eedb
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.00463752
push esi
test eax, eax
jne 0x46eed3
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.00470138
jmp 0x46eedb
lea ecx, [eax + 4]
call fcn.0041741f
push 0x4b8970
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x212], 1
call fcn.00417475
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 7
push ecx
lea ecx, [eax + 0x30]
call fcn.00470099
mov edi, dword [ebp - 0x238]
test al, al
je 0x46ef34
push edi
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x46ef34
mov dl, al
jmp 0x46efc8
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041715f
cmp dword [ebp - 0x21c], 1
lea eax, [ebp - 0x210]
mov ecx, dword [ebp - 0x218]
sete byte [ebp - 0x22c]
cmp dword [ebp - 0x220], 1
push eax
sete byte [ebp - 0x22b]
lea ecx, [ecx + 0x30]
call fcn.004703ff
test eax, eax
jne 0x46ef99
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ecx + 0x30]
call fcn.004702b8
jmp 0x46efc2
lea ebx, [eax + 4]
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0041715f
mov al, byte [ebp - 0x22c]
mov byte [ebx + 4], al
mov al, byte [ebp - 0x22b]
mov byte [ebx + 5], al
mov ebx, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x212]
cmp dword [ebp + 8], 0
je 0x46f10b
cmp byte [ebp - 0x213], 0
mov eax, dword [ebp - 0x240]
je 0x46efe5
test al, al
je 0x46f053
cmp byte [ebp - 0x211], 0
jne 0x46f04f
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x46f022
test byte [eax + 0x1c], 2
je 0x46f022
cmp byte [eax + 0x19], 5
jb 0x46f022
push edi
lea ecx, [ebp - 0x210]
mov edx, 0x40ee1c
push ecx
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.0042ae6e
cmp dword [ebp - 0x220], 1
sete al
cmp dword [ebp - 0x21c], 1
movzx eax, al
push eax
sete al
movzx eax, al
push eax
push edi
lea eax, [ebp - 0x210]
push eax
push esi
xor eax, eax
push eax
jmp 0x46f100
test al, al
jne 0x46f0a3
cmp byte [ebp - 0x211], 0
je 0x46f0a3
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x46f08d
test byte [eax + 0x1c], 2
je 0x46f08d
cmp byte [eax + 0x19], 5
jb 0x46f08d
push dword [ebp - 0x228]
mov edx, 0x40ee1c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.00416072
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x228]
push 1
jmp 0x46f100
test dl, dl
je 0x46f0d9
cmp dword [ebp - 0x220], 1
mov ecx, dword [ebp - 0x218]
sete al
cmp dword [ebp - 0x21c], 1
movzx eax, al
push eax
sete al
movzx eax, al
push eax
push edi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
call fcn.0046f202
cmp dword [ebp - 0x220], 1
sete al
cmp dword [ebp - 0x21c], 1
movzx eax, al
push eax
sete al
movzx eax, al
push eax
push edi
lea eax, [ebp - 0x210]
push eax
push esi
push 3
mov ecx, dword [ebp - 0x218]
call fcn.0046f202
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.004174b0
lea ecx, [edi - 0x10]
call fcn.004174b0
lea ecx, [esi - 0x10]
call fcn.004174b0
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x46f150
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.004174b0
test ebx, ebx
je 0x46f169
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x218]
inc dword [ebp - 0x248]
xor ecx, ecx
jmp 0x46eb77
jle 0x46f187
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x46f1b3
test byte [eax + 0x1c], 2
je 0x46f1b3
cmp byte [eax + 0x19], 5
jb 0x46f1b3
push esi
push dword [eax + 0x14]
mov edx, 0x40ee1c
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.0041610f
test ebx, ebx
je 0x46f1dc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46f1dc
test ebx, ebx
je 0x46f1cb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esi, eax
jmp 0x46f1dc
jle 0x46f1dc
movzx esi, si
or esi, 0x80070000
cmp dword [ebp - 0x24c], 0
je 0x46f1f1
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.004a9550
ret 4