Function at 0x4f983c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x4f9845
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4f9f5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404900
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4f9f78
call fcn.00404e6c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404d88
mov al, byte [0x4f9f7c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
mov ecx, 0x4f9f78
mov edx, dword [ebp - 8]
call fcn.00404b74
mov edx, dword [ebp - 0x128]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0040e90c
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0xc]
call fcn.00404900
mov eax, dword [ebp - 8]
call fcn.004d0908
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404d28
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne case.0x4f99e9.0
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00404900
mov eax, dword [ebp - 0x10]
mov edx, 0x4f9f88
call fcn.00404c74
jne 0x4f9968
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, 0x4f9f98
call fcn.0040a4d0
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f99e9.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.00404d28
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne case.0x4f99e9.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, 0x4f9f98
call fcn.0040a4d0
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.0x4f99e9.0
jmp dword [eax*4 + 0x4f99f0]
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404ad8
mov eax, dword [ebp - 0x1c]
call fcn.00404b28
mov ebx, eax
lea eax, [ebp - 0x1c]
call fcn.00404868
mov esi, ebx
dec esi
test esi, esi
jl 0x4f9a76
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.004094e8
push dword [ebp - 0x144]
push 0x4f9fa8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404be8
inc ebx
dec esi
jne 0x4f9a43
mov eax, dword [ebp - 0x1c]
call fcn.00404b28
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404dc8
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, 0x4f9fb4
call fcn.0040a4d0
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f99e9.0
lea eax, [ebp - 0x1c]
call fcn.00404868
mov esi, dword [ebp - 0x18]
test esi, esi
jl 0x4f9b2c
inc esi
lea ebx, [ebp - 0x120]
mov al, byte [ebx]
test al, al
je 0x4f9b28
mov edi, eax
and edi, 0xff
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x14c]
mov edx, 2
call fcn.004094e8
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.00404b74
inc ebx
dec esi
jne 0x4f9af2
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, 0x4f9fc8
call fcn.0040a4d0
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f99e9.0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404ad8
mov ebx, 1
lea eax, [ebp - 0x1c]
call fcn.00404868
jmp 0x4f9c68
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx - 1]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x4f9c2d
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.004030d8
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.004030a8
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x158]
call fcn.00404acc
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.004d1c4c
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x1c]
call fcn.00404b30
inc ebx
jmp 0x4f9c67
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.004094e8
push dword [ebp - 0x168]
push 0x4f9fe0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404be8
inc ebx
mov eax, dword [ebp - 0x20]
call fcn.00404b28
cmp ebx, eax
jle 0x4f9ba0
mov eax, dword [ebp - 0x1c]
call fcn.00404b28
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404dc8
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, 0x4f9ff0
call fcn.0040a4d0
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f99e9.0
xor ebx, ebx
lea eax, [ebp - 0x1c]
call fcn.00404868
jmp 0x4f9df3
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4f9d0a
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4f9df3
jmp 0x4f9d12
pop edx
pop eax
jle 0x4f9df3
cmp byte [ebp + ebx - 0x120], 0
jne 0x4f9d2a
cmp byte [ebp + ebx - 0x11f], 0
je 0x4f9e18
mov al, byte [ebp + ebx - 0x120]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x4f9db8
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.004030d8
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.004030a8
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x174]
call fcn.00404acc
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.004d1c4c
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x1c]
call fcn.00404b30
inc ebx
jmp 0x4f9df2
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.004094e8
push dword [ebp - 0x178]
push 0x4f9fe0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404be8
inc ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4f9e10
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4f9ced
jmp 0x4f9e18
pop edx
pop eax
jge 0x4f9ced
lea eax, [ebp - 0x1c]
mov edx, 0x4fa008
call fcn.00404b30
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, 0x4fa01c
call fcn.0040a4d0
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x4f99e9.0
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404ad8
mov al, byte [0x4f9f7c]
push eax
lea eax, [ebp - 0x180]
push eax
mov ecx, 0x4fa034
mov edx, 0x4f9f78
mov eax, dword [ebp - 0x1c]
call fcn.0040e90c
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x1c]
call fcn.00404900
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, 0x4fa040
call fcn.0040a4d0
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 0x4f9f66
lea eax, [ebp - 0x184]
mov edx, 8
call fcn.0040488c
lea eax, [ebp - 0x158]
mov edx, 7
call fcn.0040488c
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.0040488c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040488c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040488c
ret