Function at 0x1005cba
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x1018144]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x268], ebx
mov dword [eax], ebx
call fcn.0100a6ac
cmp eax, ebx
mov dword [ebp - 0x278], eax
je 0x1005db9
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005d38
sub esi, ecx
cmp esi, 0x1ff
jge 0x10061ab
push 0x200
push edi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp esi, 5
mov dword [ebp - 0x260], 4
jl 0x1005e05
mov ebx, dword [sym.imp.msvcrt.dll__stricmp]
lea edi, [edi + esi - 4]
push 0x10014a4
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1005d9f
mov dword [ebp - 0x260], 1
mov byte [ebp + esi - 0x258], 0
jmp 0x1005e05
push 0x100149c
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1005e05
mov dword [ebp - 0x260], 2
jmp 0x1005d95
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
push esi
mov dword [ebp - 0x258], eax
call ebx
mov ecx, dword [ebp - 0x258]
lea eax, [ecx + eax + 1]
cmp eax, 0x1ff
jge 0x10061ab
push edi
push esi
push 0x1001494
lea eax, [ebp - 0x254]
push 0x200
push eax
mov dword [ebp - 0x260], 1
call fcn.010050d2
add esp, 0x14
and dword [ebp - 0x25c], 0
push 0x101a4f0
mov ebx, 0x101a4dc
push ebx
mov edi, 0x101a4e4
push edi
mov esi, 0x101a4d8
push esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x254]
push eax
call fcn.01012e77
cmp dword [ebp - 0x278], 0
mov dword [ebp - 0x258], eax
jne 0x1005f20
cmp eax, 0x10
je 0x1005e64
cmp eax, 5
jne 0x1005f20
push dword [ebp - 0x274]
lea eax, [ebp - 0x254]
push 0x100148c
push 0x200
push eax
call fcn.010050d2
add esp, 0x10
push 0x101a4f0
push ebx
push edi
push esi
lea ecx, [ebp - 0x25c]
push ecx
xor eax, eax
lea ecx, [ebp - 0x264]
push ecx
push eax
push eax
mov dword [ebp - 0x25c], eax
push 2
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x268], 1
call fcn.01012e77
cmp eax, 0x10
mov dword [ebp - 0x258], eax
je 0x1005ecb
cmp eax, 5
jne 0x1005f20
push 0x200
push 0x1001488
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x101a4f0
push ebx
push edi
push esi
lea ecx, [ebp - 0x25c]
push ecx
xor eax, eax
lea ecx, [ebp - 0x264]
push ecx
push eax
push eax
mov dword [ebp - 0x25c], eax
push 2
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x280], 1
call fcn.01012e77
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 2
jne 0x1006048
push dword [ebp - 0x264]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x258], eax
jne 0x1005f5b
mov dword [0x101a50c], 5
jmp 0x10061b5
and dword [ebp - 0x25c], 0
push 0x101a4f0
push ebx
push edi
push esi
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x264]
push ecx
push dword [ebp - 0x264]
push eax
push 2
lea eax, [ebp - 0x254]
push eax
call fcn.01012e77
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1005fca
call fcn.01008ae5
push 0x1f4
mov esi, 0x1019e40
push esi
lea eax, [edi + 0x100]
push edi
mov dword [0x101a50c], eax
call sub.NDdeApi.dll_Ordinal_505
push ebx
push esi
push 0x1e
call fcn.0100b027
add esp, 0xc
push dword [ebp - 0x258]
jmp 0x1005ffe
mov esi, dword [ebp - 0x258]
cmp dword [esi + 0x10], ebx
jne 0x1006021
cmp word [ebp + 8], 3
je 0x1006021
call fcn.01008ae5
push ebx
lea eax, [ebp - 0x254]
push eax
push 0x1f
mov dword [0x101a50c], 0x15
call fcn.0100b027
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x258]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10061b5
push dword [ebp - 0x26c]
mov edi, dword [ebp - 0x288]
push edi
push esi
push dword [ebp - 0x260]
call fcn.0100a71b
test eax, eax
jne 0x1006096
mov dword [ebp - 0x258], 0x10
call fcn.01008ae5
mov edi, dword [ebp - 0x258]
push 0x1f4
mov esi, 0x1019e40
push esi
lea eax, [edi + 0x100]
push edi
mov dword [0x101a50c], eax
call sub.NDdeApi.dll_Ordinal_505
push 0
push esi
push edi
push 0x10013ec
call fcn.0100b193
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x254]
push eax
push 0x20
call fcn.0100b027
add esp, 0x14
jmp 0x10061b5
cmp dword [ebp - 0x278], ebx
jne 0x10060d4
cmp dword [ebp - 0x280], ebx
mov esi, 0x100
je 0x10060b9
push esi
push dword [ebp - 0x274]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x268], ebx
je 0x10060d4
push esi
push dword [ebp - 0x270]
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x260], 2
jne 0x100616b
mov esi, dword [ebp - 0x27c]
push edi
push 0x100146c
push 0x50
pop edi
lea eax, [ebp - 0x54]
push edi
push eax
mov byte [esi], 0
call fcn.010050d2
add esp, 0x10
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100618a
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x1001464
push dword [ebp - 0x268]
mov dword [ebp - 0x270], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x100615d
push dword [ebp - 0x26c]
lea eax, [ebp - 0x54]
push eax
push 0x100145c
push 0x200
push esi
call fcn.010050d2
add esp, 0x14
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100618a
push dword [ebp - 0x26c]
push edi
push 0x100145c
push 0x200
push dword [ebp - 0x27c]
call fcn.010050d2
add esp, 0x14
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x258]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0x260]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x10061b7
mov dword [0x101a50c], 0x11
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abd2
leave
ret 0x20