Function at 0x4160b6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4242b4]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x418], ebx
call fcn.0040db35
test eax, eax
mov eax, 0x402af8
jne 0x4160e8
mov eax, 0x4027f4
push eax
lea eax, [esi + 0x74]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040c2ca
test eax, eax
jne 0x416119
push 0x407e54
call fcn.0040be00
pop ecx
mov dword [esi + 0x178], 0xfffffff7
xor eax, eax
jmp 0x416532
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x428]
push eax
push 0x20007
push ebx
push 0x407e20
push 0x80000002
call edi
cmp eax, ebx
jne 0x416302
lea eax, [ebp - 0x424]
push eax
push 1
push ebx
push 0x407e14
push dword [ebp - 0x428]
call edi
cmp eax, ebx
jne 0x416206
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x424]
mov dword [ebp - 0x41c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4161aa
push eax
push 0x407dd8
call fcn.0040be00
pop ecx
pop ecx
cmp dword [ebp - 0x41c], ebx
jne 0x4161f9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x4029dc
mov ecx, esi
call fcn.0040e8ec
push 0x104
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x418], eax
lea eax, [esi + 0x9a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0x9a0]
push eax
call fcn.0040c4a4
jmp 0x416218
push dword [ebp - 0x41c]
push 0x407da0
jmp 0x416211
cmp eax, 2
je 0x416224
push eax
push 0x407d60
call fcn.0040be00
pop ecx
pop ecx
cmp dword [ebp - 0x418], ebx
jne 0x4162ea
cmp dword [esi + 0x14], ebx
je 0x4162ea
lea eax, [ebp - 0x424]
push eax
push 1
push ebx
push 0x407d4c
push dword [ebp - 0x428]
call edi
cmp eax, ebx
jne 0x4162d8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x424]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x416292
push eax
push 0x407dd8
call fcn.0040be00
pop ecx
pop ecx
cmp edi, ebx
jne 0x4162d0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4162ea
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x4029dc
mov ecx, esi
call fcn.0040e8ec
mov dword [ebp - 0x418], eax
jmp 0x4162ea
push edi
push 0x407da0
jmp 0x4162e3
cmp eax, 2
je 0x4162ea
push eax
push 0x407d60
call fcn.0040be00
pop ecx
pop ecx
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x416314
push eax
push 0x407d18
jmp 0x41630d
cmp eax, 2
je 0x416320
push eax
push 0x407ce4
call fcn.0040be00
pop ecx
pop ecx
cmp dword [ebp - 0x418], ebx
jne 0x41652b
cmp dword [esi + 0x14], ebx
je 0x4163f7
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00415d0f
cmp eax, ebx
jl 0x4163db
cmp byte [ebp - 0x20c], bl
jne 0x416353
xor eax, eax
jmp 0x416531
lea eax, [ebp - 0x20c]
push eax
push 0x407cbc
call fcn.0040be00
pop ecx
pop ecx
push 0x401354
lea eax, [ebp - 0x20c]
push eax
push 0x407cb8
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x416392
lea eax, [ebp - 0x20c]
jmp 0x4164c3
lea eax, [ebp - 0x108]
push eax
push 0x407c98
lea eax, [esi + 0x280]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040c2fe
test eax, eax
je 0x4164bd
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x4029dc
mov ecx, esi
call fcn.0040e8ec
mov dword [ebp - 0x418], eax
jmp 0x4163eb
cmp eax, 0xffffffef
je 0x4163f7
push 0x407c68
call fcn.0040be00
pop ecx
cmp dword [ebp - 0x418], ebx
jne 0x41652b
cmp dword [esi + 0x10], ebx
je 0x41652b
mov eax, dword [esi + 0x7600]
cmp eax, ebx
je 0x416520
push ebx
push 2
mov dword [ebp - 0x420], 0x104
call dword [eax + 0x18]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0x407c58
mov edi, eax
mov eax, dword [esi + 0x7600]
push 0x407a70
call dword [eax + 0x10]
cmp edi, ebx
mov dword [ebp - 0x41c], eax
je 0x416456
mov eax, dword [esi + 0x7600]
push ebx
push edi
call dword [eax + 0x18]
cmp dword [ebp - 0x41c], ebx
jne 0x416501
lea eax, [ebp - 0x20c]
push eax
push 0x407cbc
call fcn.0040be00
pop ecx
pop ecx
push 0x401354
lea eax, [ebp - 0x20c]
push eax
push 0x407cb8
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
je 0x416387
lea eax, [ebp - 0x108]
push eax
push 0x407c98
lea eax, [esi + 0x280]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x4164df
lea eax, [ebp - 0x108]
push eax
push 0x407c28
call fcn.0040be00
pop ecx
pop ecx
mov dword [esi + 0x178], 0xfffffff7
jmp 0x41634c
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x4029dc
mov ecx, esi
call fcn.0040e8ec
mov dword [ebp - 0x418], eax
jmp 0x41652b
cmp dword [ebp - 0x41c], 0x645
je 0x41652b
push dword [ebp - 0x41c]
push 0x407bec
call fcn.0040be00
pop ecx
jmp 0x41652a
push 0x407bc8
call fcn.0040be00
pop ecx
mov eax, dword [ebp - 0x418]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041a84f
leave
ret