Function at 0x1001255a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10038773
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x10045390]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x10045390]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], ebx
mov edi, ecx
mov byte [esp + 0x1b], 0x7d
test eax, eax
je 0x100129a9
cmp eax, 1
je 0x10012994
cmp eax, 2
je 0x1001295f
jle 0x100129c3
cmp eax, 4
jle 0x1001263d
push 5
pop esi
cmp eax, esi
je 0x100125eb
cmp eax, 6
jne 0x100129c3
push edi
call fcn.1000bee0
jmp 0x100129af
mov eax, dword [0x10045344]
mov ecx, 0x10045344
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2a4], esi
call fcn.10019303
pop ecx
push edi
xor ecx, ecx
lea esi, [esp + 0x20]
call fcn.1000cd71
cmp eax, 0xffffffff
je 0x10012631
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x1f]
push edx
call dword [eax + 8]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x10012958
mov eax, dword [0x10045344]
mov esi, 0x10045344
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
and dword [esp + 0x2a0], 0
mov eax, dword [0x10045344]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2a0], 1
mov eax, dword [0x10045344]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
push edi
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2a8], 2
call fcn.1000cc2e
cmp dword [ebp + 0xc], 4
jne 0x10012753
push 0x5c
push dword [esp + 0x18]
call fcn.1001e371
pop ecx
pop ecx
test eax, eax
je 0x1001272c
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x1001272c
lea eax, [esp + 0x30]
push eax
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.1000cee3
lea edi, [esp + 0x1c]
mov byte [esp + 0x2a0], 3
call fcn.1000cbed
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.1000160d
inc esi
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
call fcn.1000ce45
lea edi, [esp + 0x24]
mov byte [esp + 0x2a0], 4
call fcn.1000cbed
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.1000160d
jmp 0x10012742
lea eax, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.1000cbed
lea esi, [esp + 0x24]
call fcn.1000da64
lea eax, [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.1000cbed
mov ebx, dword [esp + 0x24]
push str.HKEY_CLASSES_ROOT
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.1000cd71
test eax, eax
jne 0x100127a2
push 0x12
mov eax, esi
call fcn.1001317c
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x1001278b
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.10001706
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
jmp 0x100128d6
push str.HKEY_CURRENT_USER
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.1000cd71
test eax, eax
jne 0x100127f1
push 0x12
mov eax, esi
call fcn.1001317c
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x100127da
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.10001706
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
jmp 0x100128d6
push str.HKEY_LOCAL_MACHINE
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.1000cd71
test eax, eax
jne 0x10012840
push 0x13
mov eax, esi
call fcn.1001317c
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x10012829
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.10001706
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x100128d6
push str.HKEY_USERS
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.1000cd71
test eax, eax
jne 0x1001288c
push 0xb
mov eax, esi
call fcn.1001317c
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x10012878
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.10001706
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_closesocket
jmp 0x100128d6
push str.HKEY_CURRENT_CONFIG
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.1000cd71
test eax, eax
jne 0x100128e2
push 0x14
mov eax, esi
call fcn.1001317c
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x100128c4
push dword [esi - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.10001706
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10012941
jmp 0x100128e6
mov esi, dword [esp + 0x14]
cmp dword [ebp + 0xc], 4
jne 0x10012924
xor edi, edi
mov dword [esp + 0x2c], edi
cmp dword [ebx - 4], 1
jle 0x10012909
push dword [ebx - 0xc]
lea eax, [esp + 0x28]
push eax
call fcn.10001706
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x3c]
push eax
push edi
push ebx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012937
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x1f]
push edx
call dword [eax + 8]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
call fcn.1000160d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1000160d
lea eax, [esi - 0x10]
call fcn.1000160d
jmp 0x100129c3
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
setne dl
cmp eax, 0xffffffff
je 0x10012981
test byte [esp + 0x3c], 0x10
je 0x10012981
mov cl, 1
jmp 0x10012983
xor cl, cl
test dl, dl
jne 0x1001298b
test cl, cl
je 0x100129c3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100129b4
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push edi
push eax
call fcn.1000cba8
call fcn.1000aab6
jmp 0x100129af
push edi
call fcn.1000bde9
pop ecx
test al, al
je 0x100129c3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x1f]
push edx
call dword [eax + 8]
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.1001c645
mov esp, ebp
pop ebp
ret 8