Function at 0x56e0ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x56e0f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x56e80f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404ab8
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x56e828
call fcn.00405024
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404f40
mov al, byte [0x56e82c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
mov ecx, 0x56e828
mov edx, dword [ebp - 8]
call fcn.00404d2c
mov edx, dword [ebp - 0x128]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0040e9b0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0xc]
call fcn.00404ab8
mov eax, dword [ebp - 8]
call fcn.00579944
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ee0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne case.0x56e299.0
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00404ab8
mov eax, dword [ebp - 0x10]
mov edx, 0x56e838
call fcn.00404e2c
jne 0x56e218
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e848
call fcn.0040a520
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x56e299.0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne case.0x56e299.0
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e848
call fcn.0040a520
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
cmp eax, 7
ja case.0x56e299.0
jmp dword [eax*4 + 0x56e2a0]
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov ebx, eax
lea eax, [ebp - 0x1c]
call fcn.00404a20
mov esi, ebx
dec esi
test esi, esi
jl 0x56e326
inc esi
lea ebx, [ebp - 0x120]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x144]
xor eax, eax
mov al, byte [ebx]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x144]
push 0x56e858
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
dec esi
jne 0x56e2f3
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404f80
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e864
call fcn.0040a520
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x56e299.0
lea eax, [ebp - 0x1c]
call fcn.00404a20
mov esi, dword [ebp - 0x18]
test esi, esi
jl 0x56e3dc
inc esi
lea ebx, [ebp - 0x120]
mov al, byte [ebx]
test al, al
je 0x56e3d8
mov edi, eax
and edi, 0xff
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x14c]
mov edx, 2
call fcn.004095b4
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.00404d2c
inc ebx
dec esi
jne 0x56e3a2
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e878
call fcn.0040a520
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x56e299.0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov ebx, 1
lea eax, [ebp - 0x1c]
call fcn.00404a20
jmp 0x56e518
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx - 1]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x56e4dd
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + ebx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x160]
call fcn.00403138
lea eax, [ebp - 0x164]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + ebx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x160]
mov cl, 2
call fcn.00403108
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x158]
call fcn.00404c84
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0057aac4
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x1c]
call fcn.00404ce8
inc ebx
jmp 0x56e517
mov eax, dword [ebp - 0x20]
movzx edi, byte [eax + ebx - 1]
push dword [ebp - 0x1c]
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x168]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x168]
push 0x56e890
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
mov eax, dword [ebp - 0x20]
call fcn.00404ce0
cmp ebx, eax
jle 0x56e450
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404f80
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e8a0
call fcn.0040a520
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x56e299.0
xor ebx, ebx
lea eax, [ebp - 0x1c]
call fcn.00404a20
jmp 0x56e6a3
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x56e5ba
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x56e6a3
jmp 0x56e5c2
pop edx
pop eax
jle 0x56e6a3
cmp byte [ebp + ebx - 0x120], 0
jne 0x56e5da
cmp byte [ebp + ebx - 0x11f], 0
je 0x56e6c8
mov al, byte [ebp + ebx - 0x120]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x56e668
lea eax, [ebp - 0x15c]
mov dl, byte [ebp + ebx - 0x120]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x160]
call fcn.00403138
lea eax, [ebp - 0x164]
mov dl, byte [ebp + ebx - 0x11f]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x160]
mov cl, 2
call fcn.00403108
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x174]
call fcn.00404c84
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.0057aac4
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x1c]
call fcn.00404ce8
inc ebx
jmp 0x56e6a2
movzx edi, byte [ebp + ebx - 0x120]
push dword [ebp - 0x1c]
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x178]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x178]
push 0x56e890
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x56e6c0
cmp eax, dword [esp]
pop edx
pop eax
jae 0x56e59d
jmp 0x56e6c8
pop edx
pop eax
jge 0x56e59d
lea eax, [ebp - 0x1c]
mov edx, 0x56e8b8
call fcn.00404ce8
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e8cc
call fcn.0040a520
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x56e299.0
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov al, byte [0x56e82c]
push eax
lea eax, [ebp - 0x180]
push eax
mov ecx, 0x56e8e4
mov edx, 0x56e828
mov eax, dword [ebp - 0x1c]
call fcn.0040e9b0
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x1c]
call fcn.00404ab8
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x56e8f0
call fcn.0040a520
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56e816
lea eax, [ebp - 0x184]
mov edx, 8
call fcn.00404a44
lea eax, [ebp - 0x158]
mov edx, 7
call fcn.00404a44
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404a44
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a44
ret