Function at 0x40d6f3
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0xf8], 4
je 0x40dd0a
cmp dword [esi + 0x214], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
jb 0x40d71e
mov eax, dword [esi + 0x200]
jmp 0x40d724
lea eax, [esi + 0x200]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
push edi
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
je 0x40d794
push eax
call fcn.0042f9cf
add esp, 4
cmp dword [esi + 0x214], 0x10
mov ebx, eax
mov dword [esp + 0x10], ebx
jb 0x40d777
mov eax, dword [esi + 0x200]
jmp 0x40d77d
lea eax, [esi + 0x200]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push 0
push eax
push edi
call ebp
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x100]
test eax, eax
jne 0x40d7e9
test ecx, ecx
je 0x40d7e9
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40d7b7
mov ecx, dword [esi + 0x200]
jmp 0x40d7bd
lea ecx, [esi + 0x200]
cmp dword [esi + 0x1f8], eax
jb 0x40d7d7
mov eax, dword [esi + 0x1e4]
push ecx
push eax
push str._s_s_was_supposed_to_exist_and_we_cannot_read_it_n
jmp 0x40d874
push ecx
lea eax, [esi + 0x1e4]
push eax
push str._s_s_was_supposed_to_exist_and_we_cannot_read_it_n
jmp 0x40d874
cmp eax, 2
jne 0x40d833
test ecx, ecx
jne 0x40d833
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40d807
mov ecx, dword [esi + 0x200]
jmp 0x40d80d
lea ecx, [esi + 0x200]
cmp dword [esi + 0x1f8], eax
jb 0x40d824
mov eax, dword [esi + 0x1e4]
push ecx
push eax
push str._s_s_was_not_supposed_to_exist_and_it_does_n
jmp 0x40d874
push ecx
lea eax, [esi + 0x1e4]
push eax
push str._s_s_was_not_supposed_to_exist_and_it_does_n
jmp 0x40d874
cmp eax, 3
jne 0x40d888
test ecx, ecx
je 0x40d888
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40d851
mov ecx, dword [esi + 0x200]
jmp 0x40d857
lea ecx, [esi + 0x200]
cmp dword [esi + 0x1f8], eax
jb 0x40d867
mov eax, dword [esi + 0x1e4]
jmp 0x40d86d
lea eax, [esi + 0x1e4]
push ecx
push eax
push str._s_s_was_supposed_to_exist_and_it_does_not__n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x14
jmp 0x40d8fa
cmp eax, 5
jne 0x40d91c
test ecx, ecx
je 0x40d91c
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40d8ae
mov edx, dword [esi + 0x200]
jmp 0x40d8b4
lea edx, [esi + 0x200]
cmp dword [esi + 0x230], eax
jb 0x40d8c4
mov ecx, dword [esi + 0x21c]
jmp 0x40d8ca
lea ecx, [esi + 0x21c]
cmp dword [esi + 0x1f8], eax
jb 0x40d8da
mov eax, dword [esi + 0x1e4]
jmp 0x40d8e0
lea eax, [esi + 0x1e4]
push edx
push ecx
push eax
push str._s_s_was_supposed_to_contain__s_and_it_does_not_exist__n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x18
test ebx, ebx
je 0x40d907
push ebx
call fcn.0042f9ca
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword [esi + 0xe8], eax
pop esi
add esp, 0x10
ret 4
cmp eax, 4
jne 0x40daec
test ecx, ecx
jne 0x40daec
test ebx, ebx
je 0x40daec
cmp dword [esi + 0x230], 0x10
jb 0x40d946
mov ebx, dword [esi + 0x21c]
jmp 0x40d94c
lea ebx, [esi + 0x21c]
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
cmp eax, 6
ja case.0x40d95c.4
jmp dword [eax*4 + 0x40dd14]
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0xe8], eax
jmp case.0x40d95c.4
push ebx
call fcn.004547ac
mov edx, dword [esp + 0x14]
xor ecx, ecx
add esp, 4
cmp dword [edx], eax
sete cl
mov dword [esi + 0xe8], ecx
jmp case.0x40d95c.4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
cmp eax, edx
jne 0x40da30
xor edi, edi
test ecx, ecx
jle 0x40da1d
mov ebp, ebx
lea ebx, [ebx]
movzx ecx, byte [ebp + 1]
movzx edx, byte [ebp]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0040cea0
add esp, 0xc
test eax, eax
je 0x40d9f6
mov cl, byte [esp + 0x24]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp cl, byte [edi + edx]
sete al
add dword [esi + 0xe8], eax
add ebp, 2
jmp 0x40da12
push ebx
push str.The_value_of_the_data_key_is_invalid_n
push 0x400
push 0x4932a8
call fcn.00401300
mov edi, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x14]
add edi, 1
cmp edi, ecx
jl 0x40d9c0
xor eax, eax
cmp dword [esi + 0xe8], ecx
sete al
mov dword [esi + 0xe8], eax
jmp case.0x40d95c.4
push ebx
push str.The_value_of_the_data_key_is_invalid_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x10
jmp case.0x40d95c.4
mov edi, dword [esp + 0x10]
mov ebp, edi
cmp byte [edi], 0
je case.0x40d95c.4
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ebp]
cmp edi, edx
ja case.0x40d95c.4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40da76
mov dword [esi + 0xe8], 1
mov eax, edi
lea edx, [eax + 1]
jmp 0x40da80
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40da80
sub eax, edx
lea edi, [edi + eax + 1]
test edi, edi
jne 0x40da50
cmp dword [esi + 0xe8], 0
je 0x40daec
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40dab1
mov ecx, dword [esi + 0x200]
jmp 0x40dab7
lea ecx, [esi + 0x200]
cmp dword [esi + 0x1f8], eax
jb 0x40dac7
mov eax, dword [esi + 0x1e4]
jmp 0x40dacd
lea eax, [esi + 0x1e4]
mov edx, dword [esp + 0x10]
push ebx
push edx
push ecx
push eax
push str._s_s_s_was_not_supposed_to_contain__s_and_it_does_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x1c
cmp dword [esi + 0x100], 5
jne 0x40dcf0
cmp dword [esp + 0x18], 0
jne 0x40dcf0
cmp dword [esp + 0x10], 0
je 0x40dd01
cmp dword [esi + 0x230], 0x10
jb 0x40db24
mov ebp, dword [esi + 0x21c]
mov dword [esp + 0x18], ebp
jmp 0x40db30
lea eax, [esi + 0x21c]
mov dword [esp + 0x18], eax
mov ebp, eax
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
cmp eax, 6
ja case.0x40db40.4
jmp dword [eax*4 + 0x40dd30]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.004538a0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0xe8], eax
jmp case.0x40db40.4
push ebp
call fcn.004547ac
mov edx, dword [esp + 0x14]
movzx ecx, byte [edx]
xor edx, edx
add esp, 4
cmp ecx, eax
setne dl
mov dword [esi + 0xe8], edx
jmp case.0x40db40.4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
cmp eax, edx
jne 0x40dc26
xor edi, edi
test ecx, ecx
jle 0x40dc13
mov ebx, dword [esp + 0x10]
lea esp, [esp]
movzx ecx, byte [ebp + 1]
movzx edx, byte [ebp]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0040cea0
add esp, 0xc
test eax, eax
je 0x40dbe6
mov cl, byte [esp + 0x24]
xor eax, eax
cmp cl, byte [edi + ebx]
mov ecx, dword [esp + 0x14]
sete al
add dword [esi + 0xe8], eax
add ebp, 2
jmp 0x40dc08
mov edx, dword [esp + 0x18]
push edx
push str.The_value_of_the_data_key_is_invalid_n
push 0x400
push 0x4932a8
call fcn.00401300
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov edi, ecx
add edi, 1
cmp edi, ecx
jl 0x40dbb0
mov ebp, dword [esp + 0x18]
xor eax, eax
cmp dword [esi + 0xe8], ecx
setne al
mov dword [esi + 0xe8], eax
jmp case.0x40db40.4
push ebp
push str.The_value_of_the_data_key_is_invalid_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x10
jmp case.0x40db40.4
mov edi, dword [esp + 0x10]
mov dword [esi + 0xe8], 1
mov ebx, edi
xor ebp, ebp
cmp byte [edi], 0
je 0x40dc93
mov ecx, dword [esp + 0x14]
lea edx, [ebx + ecx]
cmp edi, edx
ja 0x40dc93
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.004538a0
add esp, 8
test eax, eax
je 0x40dc7a
mov dword [esi + 0xe8], ebp
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dc80
sub eax, edx
lea edi, [edi + eax + 1]
cmp edi, ebp
jne 0x40dc52
mov ebp, dword [esp + 0x18]
cmp dword [esi + 0xe8], 0
je 0x40dcf0
mov eax, 0x10
cmp dword [esi + 0x214], eax
jb 0x40dcb5
mov ecx, dword [esi + 0x200]
jmp 0x40dcbb
lea ecx, [esi + 0x200]
cmp dword [esi + 0x1f8], eax
jb 0x40dccb
mov eax, dword [esi + 0x1e4]
jmp 0x40dcd1
lea eax, [esi + 0x1e4]
mov edx, dword [esp + 0x10]
push ebp
push edx
push ecx
push eax
push str._s_s_s_was_supposed_to_contain__s_and_it_does_not_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40dd01
push eax
call fcn.0042f9ca
add esp, 4
mov eax, dword [esi + 0xe8]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4