Function at 0x3000c55d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3c8]
sub esp, 0x448
mov eax, dword [0x30012970]
push ebx
push esi
push edi
mov edi, ecx
mov cx, word [edi]
mov dword [ebp + 0x3c4], eax
xor esi, esi
mov eax, edi
jmp 0x3000c596
cmp cx, 0x5c
jne 0x3000c58c
mov esi, eax
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x3000c584
and word [esi], cx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x1ac]
push eax
call fcn.30002c36
push esi
mov word [esi], 0x5c
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1ac]
push eax
movzx eax, byte [ebp + 0x3d0]
sub eax, 0x80000000
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x3000c5f1
xor eax, eax
jmp 0x3000c97d
push 0x10
pop edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x3b4]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x3000c625
cmp eax, 0xea
je 0x3000c625
xor edi, edi
jmp 0x3000c972
cmp dword [ebp - 0x60], edi
jae 0x3000c62d
mov dword [ebp - 0x60], edi
inc dword [ebp - 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x3000c650
cmp dword [ebp + 0x3dc], esi
je 0x3000c69e
push dword [ebp + 0x3e0]
call fcn.30006d0a
test eax, eax
pop ecx
je 0x3000c69e
push dword [ebp - 0x60]
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x3000c638
mov edi, 0x33a
call fcn.3000916b
mov al, byte [ebp + 0x3d0]
cmp al, byte [0x300128f6]
mov esi, 0x30013ee0
jne 0x3000c68e
lea eax, [ebp + 0x1ac]
push eax
push esi
call fcn.30007b1b
test eax, eax
pop ecx
pop ecx
jne 0x3000c6f0
cmp byte [ebp + 0x3d0], 1
jne 0x3000c6a6
push 0x30001e0c
jmp 0x3000c6cb
push 7
pop edi
jmp 0x3000c972
cmp byte [ebp + 0x3d0], 2
jne 0x3000c6b6
push 0x30001e00
jmp 0x3000c6cb
cmp byte [ebp + 0x3d0], 0
jne 0x3000c6c6
push 0x30001df4
jmp 0x3000c6cb
push 0x30001de8
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.30002c36
lea eax, [ebp + 0x1ac]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.3000405a
lea eax, [ebp - 0x5c]
push eax
call fcn.300091e6
pop ecx
mov al, byte [ebp + 0x3d0]
xor edi, edi
cmp al, byte [0x300128f6]
je 0x3000c764
push dword [ebp + 0x3e0]
mov byte [0x300128f6], al
push dword [ebp + 0x3dc]
push 1
push 0xe
push dword [ebp + 0x3d8]
push dword [ebp + 0x3d4]
call fcn.30009699
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x3000c969
push dword [ebp + 0x3e0]
lea eax, [ebp + 0x3d0]
push dword [ebp + 0x3dc]
push 1
push eax
push dword [ebp + 0x3d8]
push dword [ebp + 0x3d4]
call fcn.30002f7a
add esp, 0x18
test eax, eax
je 0x3000c966
lea eax, [ebp + 0x1ac]
push eax
push esi
call fcn.30007b1b
test eax, eax
pop ecx
pop ecx
je 0x3000c78b
mov eax, dword [0x300140e8]
and eax, dword [ebp + 0x3e4]
cmp ax, word [ebp + 0x3e4]
je 0x3000c7d9
lea eax, [ebp + 0x1ac]
push eax
push ebx
push esi
call fcn.30002c36
push dword [ebp + 0x3e0]
mov eax, dword [ebp + 0x3e4]
push dword [ebp + 0x3dc]
lea ecx, [ebp + 0x1ac]
push ecx
push eax
push 4
push dword [ebp + 0x3d8]
mov word [0x300140e8], ax
push dword [ebp + 0x3d4]
call fcn.300096e1
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x3000c969
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x7c]
cmp eax, 1
jne 0x3000c81e
cmp dword [ebp - 0x64], ebx
mov byte [ebp - 0x68], 5
jne 0x3000c8ff
mov dword [ebp - 0x64], 2
mov word [esi], bx
jmp 0x3000c8ff
cmp eax, 7
jne 0x3000c82c
mov byte [ebp - 0x68], 6
jmp 0x3000c8ff
cmp eax, 2
jne 0x3000c8e7
mov byte [ebp - 0x68], 7
cmp word [esi], 0
je 0x3000c8ff
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [0x30014300]
mov ebx, eax
jmp 0x3000c888
mov eax, dword [edi + 0xc]
cmp ebx, eax
jl 0x3000c885
lea eax, [esi + eax*2]
mov cx, word [eax]
and word [eax], 0
push dword [edi + 4]
mov dword [ebp - 0x78], eax
push esi
mov word [ebp - 0x80], cx
call fcn.30007b1b
test eax, eax
pop ecx
pop ecx
jne 0x3000c897
mov ax, word [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
mov word [ecx], ax
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x3000c854
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x3000c839
sub ebx, dword [edi + 0xc]
lea eax, [ebx + ebx + 2]
push eax
mov eax, dword [edi + 8]
push dword [ebp - 0x78]
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [ebp - 0x60]
mov eax, esi
sub eax, dword [ebp - 0x6c]
add esp, 0xc
push dword [edi]
sar eax, 1
shr ecx, 1
sub ecx, eax
push ecx
push esi
call fcn.30002d80
mov eax, dword [edi + 8]
mov cx, word [ebp - 0x80]
lea esi, [esi + eax*2]
mov word [esi], cx
sub eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x64]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x64], eax
jmp 0x3000c839
cmp eax, 4
jne 0x3000c8f2
mov byte [ebp - 0x68], 8
jmp 0x3000c8ff
cmp eax, 3
je 0x3000c8fb
cmp eax, ebx
jne 0x3000c969
mov byte [ebp - 0x68], 9
mov edi, 0x33b
call fcn.3000916b
push dword [ebp - 0x70]
call fcn.300091e6
push dword [ebp - 0x64]
mov esi, dword [ebp + 0x3e0]
push dword [ebp - 0x70]
mov edi, dword [ebp + 0x3dc]
push dword [ebp + 0x3e4]
mov ebx, dword [ebp + 0x3d8]
push dword [ebp - 0x68]
push dword [ebp + 0x3d4]
call fcn.30009821
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x3000c969
push esi
push dword [ebp + 0x3dc]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push ebx
push dword [ebp + 0x3d4]
call fcn.30002f7a
add esp, 0x18
test eax, eax
jne 0x3000c969
push 7
pop edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp + 0x3c4]
pop edi
pop esi
pop ebx
call fcn.300101bf
add ebp, 0x3c8
leave
ret