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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x18]
xor eax, 0x80000000
mov ecx, dword [eax*4 + 0x402b28]
mov eax, dword [eax*4 + 0x402b68]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x1c], eax
jae 0x401123
and dword [ebp - 8], 0
jmp 0x40112d
lea eax, [eax*2 + section..bss]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0x20000
xor ecx, ecx
or eax, ecx
je 0x40113f
push 0xc
jmp 0x401141
push 8
pop eax
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0x20119
push eax
push dword [ebp - 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x40116f
push section..bss
push edi
push 0x402f00
jmp 0x401698
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 0x44c000
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x444000
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x4000
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
je 0x401276
cmp edi, 0x103
je 0x4011e1
push section..bss
push edi
push 0x402ee4
push 0x402e80
push dword [ebp + 8]
call section..code
add esp, 0x14
cmp edi, 5
jne 0x4015fc
mov ebx, 0x1ffff
xor esi, esi
sub ebx, dword [ebp + 0x1c]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x1c]
lea eax, [eax*2 + 0x404002]
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
je 0x401604
cmp edi, 0x103
je 0x401243
push section..bss
push edi
push 0x402e60
push 0x402e80
push dword [ebp + 8]
call section..code
add esp, 0x14
cmp edi, 5
jne 0x401638
cmp dword [ebp - 0x10], 0
jne 0x40167b
test esi, esi
jne 0x40167b
cmp dword [ebp - 8], esi
jne 0x40163e
push dword [ebp - 0x14]
push 0x402e30
push dword [ebp + 0xc]
call fcn.0040104e
add esp, 0xc
jmp 0x401654
cmp dword [ebp - 8], 0
jne 0x40128f
push dword [ebp - 0x14]
push 0x402e24
push esi
call fcn.0040104e
add esp, 0xc
jmp 0x4012a3
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x402e0c
push esi
call fcn.0040104e
add esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
jae 0x4012d6
cmp dword [ebp - 0x18], 0
push dword [eax*4 + 0x402b88]
jne 0x4012ca
push 0x402df0
push esi
call fcn.0040104e
add esp, 0xc
jmp 0x4012f7
push 0x444000
push 0x402dcc
jmp 0x4012ee
cmp dword [ebp - 0x18], 0
push eax
jne 0x4012e4
push 0x402db8
jmp 0x4012bf
push 0x444000
push 0x402d9c
push esi
call fcn.0040104e
add esp, 0x10
and edi, eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401312
push 2
push 0x402d94
push esi
call fcn.004010a4
jmp 0x4015d0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x401597
cmp ecx, 2
jbe 0x4014f4
cmp ecx, 4
je 0x4014e3
cmp ecx, 5
je 0x4014be
cmp ecx, 6
je 0x40148c
cmp ecx, 7
je 0x40137a
cmp ecx, 0xb
jne 0x401597
cmp eax, 8
jne 0x401597
mov eax, dword [0x44c004]
mov ecx, dword [0x44c000]
push eax
push ecx
push eax
push ecx
push 0x402d68
push esi
call fcn.0040104e
add esp, 0x18
jmp 0x4015d0
test al, 1
jne 0x401597
cmp eax, 2
jne 0x40139d
cmp word [0x44c000], 0
jne 0x40139d
push 3
push 0x402d60
jmp 0x401307
shr eax, 1
lea ecx, [eax*2 + 0x44c000]
mov esi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
cmp eax, 1
jbe 0x4013cc
lea edx, [ecx - 2]
cmp word [edx], 0
jne 0x4013cc
cmp word [eax*2 + 0x44bffc], 0
jne 0x4013cc
mov dword [ebp - 0x24], edx
jmp 0x4013d1
xor eax, eax
mov word [ecx], ax
cmp word [esi], 0
jne 0x4013eb
push 3
push 0x402d58
push dword [ebp + 0xc]
call fcn.004010a4
jmp 0x401479
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013f0
push 2
sub eax, edx
push 0x402d50
push dword [ebp + 0xc]
sar eax, 1
mov dword [ebp - 4], eax
call fcn.004010a4
push esi
and edi, eax
mov dword [ebp - 0xc], esi
call fcn.004010db
mov ebx, eax
mov eax, dword [ebp - 4]
lea esi, [esi + eax*2]
jmp 0x40144c
mov eax, ebx
sub eax, dword [ebp - 0xc]
add eax, 2
sar eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004010a4
mov dword [ebp - 0xc], ebx
add ebx, 2
push ebx
and edi, eax
call fcn.004010db
mov ebx, eax
test ebx, ebx
jne 0x401426
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004010a4
push 1
push 0x402d4c
push dword [ebp + 0xc]
and edi, eax
call fcn.004010a4
mov ebx, 0x44c000
add esi, 2
and edi, eax
cmp esi, dword [ebp - 0x24]
jb 0x4013d1
jmp 0x4015be
test al, 1
jne 0x401597
push 2
push 0x402d50
push esi
call fcn.004010a4
and edi, eax
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push ebx
push esi
call fcn.004010a4
push 3
and edi, eax
push 0x402d44
jmp 0x401307
cmp eax, 4
jne 0x401597
mov eax, dword [0x44c000]
push eax
bswap eax
push eax
push 0x402d20
push esi
call fcn.0040104e
add esp, 0x10
jmp 0x4015d0
cmp eax, 4
jne 0x401597
mov eax, dword [0x44c000]
push eax
jmp 0x4014cf
test al, 1
jne 0x401597
cmp word [0x44c000], 0
jne 0x401512
push 5
push 0x402d14
jmp 0x401307
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x44c000], cx
mov eax, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401526
push 2
sub eax, ecx
push 0x402d50
push dword [ebp + 0xc]
sar eax, 1
mov dword [ebp - 4], eax
call fcn.004010a4
push ebx
jmp 0x401567
mov eax, esi
sub eax, dword [ebp - 0xc]
add eax, 2
sar eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004010a4
mov dword [ebp - 0xc], esi
add esi, 2
push esi
and edi, eax
call fcn.004010db
mov esi, eax
test esi, esi
jne 0x40154a
mov eax, dword [ebp - 4]
add eax, eax
sub eax, dword [ebp - 0xc]
add eax, ebx
sar eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004010a4
push 3
and edi, eax
push 0x402d44
jmp 0x4015c5
xor esi, esi
test eax, eax
je 0x4015be
movzx eax, byte [esi + 0x44c000]
push 3
lea eax, [eax*8 + 0x402328]
push eax
push dword [ebp + 0xc]
call fcn.004010a4
and edi, eax
inc esi
cmp esi, dword [ebp - 4]
jb 0x40159d
push 2
push 0x402d94
push dword [ebp + 0xc]
call fcn.004010a4
mov esi, dword [ebp + 0xc]
and edi, eax
test edi, edi
jne 0x4015fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push section..bss
push 0x444000
push eax
push 0x402d00
push 0x402c80
push dword [ebp + 8]
call section..code
add esp, 0x18
inc dword [ebp - 0x10]
jmp 0x40117d
mov edi, dword [ebp + 0x1c]
push 0x5c
pop eax
mov word [edi*2 + section..bss], ax
mov eax, dword [ebp - 0x28]
lea eax, [eax + edi + 1]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004010f9
xor eax, eax
mov word [edi*2 + section..bss], ax
inc esi
jmp 0x4011eb
push dword [ebp - 8]
push dword [ebp - 0x14]
push 0x402c40
push dword [ebp + 0xc]
call fcn.0040104e
add esp, 0x10
test eax, eax
jne 0x40167b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push section..bss
mov edi, eax
push edi
push 0x402d00
push 0x402bd0
push dword [ebp + 8]
call section..code
add esp, 0x14
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov dword [ebp - 0x18], eax
pop ebx
test eax, eax
je 0x4016a8
push section..bss
push eax
push 0x402bb8
push 0x402e80
push dword [ebp + 8]
call section..code
add esp, 0x14
mov eax, edi
pop edi
leave
ret 0x18