Function at 0x410e9c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43943b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], edx
mov edi, ecx
movzx ecx, word [edi + 0x18]
xor esi, esi
mov bl, cl
mov dword [ebp - 0x54], esi
shr bl, 7
and bl, 1
call fcn.00410de6
test al, al
je 0x410ef5
and cl, 0x30
cmp cl, 0x20
jne 0x411335
cmp dword [0x4694e0], esi
jne 0x411335
mov dl, 1
mov ecx, edi
call fcn.0041161d
test al, al
jne 0x411335
push ecx
xor eax, eax
lea ecx, [ebp - 0xc4]
push 0x469690
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
call fcn.0040f277
xor edx, edx
mov dword [ebp - 0x5c], edx
test bl, bl
jne 0x4110f5
mov ebx, edx
cmp ebx, 4
jge 0x411017
movzx eax, byte [edi + 0x14]
lea ecx, [ebp - 0x78]
push edx
push eax
push edx
mov byte [ebp - 0x4d], dl
push edx
mov edx, dword [edi + 0x10]
call fcn.00410394
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.00411fae
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x410f7e
and dword [ebp - 0x74], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0
jne 0x411008
lea eax, [ebp - 0x60]
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x5c]
push ecx
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x410ff1
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x410ff1
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x68], eax
pop ecx
test eax, eax
je 0x410feb
test esi, esi
je 0x410fce
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x68]
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x5c]
push 0
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x410fee
push 8
pop eax
mov dword [ebp - 0x54], eax
mov ecx, eax
call fcn.004101f1
test eax, eax
je 0x411008
mov ecx, dword [edi + 0x10]
call fcn.0041020e
mov al, 1
jmp 0x41100b
mov al, byte [ebp - 0x4d]
inc ebx
push 0
pop edx
test al, al
jne 0x410f3a
cmp dword [ebp - 0x54], 0
jne 0x4110bb
test esi, esi
je 0x4110bb
movzx eax, word [edi + 0x18]
and eax, 0xf
cmp dword [ebp - 0x64], eax
jne 0x4110f5
sub eax, 1
je 0x41106f
sub eax, 1
je 0x41106f
mov ecx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x58]
cmp ecx, 4
jne 0x4110f8
push ecx
push ebx
push esi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
xor edx, edx
test eax, eax
jne 0x4110f8
mov dword [ebp - 0x54], edx
jmp 0x411308
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x58]
shr eax, 1
cmp word [esi + eax*2 - 2], dx
jne 0x4110f8
mov ecx, ebx
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4110aa
test dx, dx
je 0x4110a4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4110aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x411082
xor edx, edx
mov eax, edx
jmp 0x4110b1
sbb eax, eax
or eax, 1
xor edx, edx
test eax, eax
je 0x411308
jmp 0x4110f8
mov ecx, dword [edi + 8]
cmp ecx, 0xcccccccc
je 0x4110f5
movzx eax, word [edi + 0x18]
and eax, 0xf
sub eax, 1
je 0x4110eb
sub eax, 1
je 0x4110eb
dec eax
sub eax, 1
jne 0x411353
mov ebx, dword [ebp - 0x58]
cmp dword [ebx], ecx
jmp 0x411061
mov ebx, dword [ebp - 0x58]
cmp ecx, ebx
jmp 0x411061
mov ebx, dword [ebp - 0x58]
mov eax, edx
mov dword [ebp - 0x58], edx
cmp eax, 4
jge 0x411308
movzx eax, byte [edi + 0x14]
lea ecx, [ebp - 0x70]
push edx
push eax
push 4
mov byte [ebp - 0x4d], dl
push edx
mov edx, dword [edi + 0x10]
call fcn.00410394
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x78]
push eax
call fcn.00411fae
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x411143
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x411240
movzx eax, word [edi + 0x18]
push 4
push ebx
and eax, 0xf
push eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x5c]
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov dword [ebp - 0x54], ecx
call fcn.004101f1
test eax, eax
je 0x411189
mov ecx, dword [edi + 0x10]
call fcn.0041020e
mov byte [ebp - 0x4d], 1
jmp 0x4112f4
test ecx, ecx
je 0x4112f4
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x68]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x80], eax
xor eax, eax
mov word [ebp - 0x7c], ax
mov eax, dword [edi]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x88], 0x43e538
mov dword [ebp - 0x84], str.Win32ErrorCode
mov dword [ebp - 0x98], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x94], str.RegistryValueName
mov word [ebp - 0x8c], ax
call fcn.0040fa0e
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x43e528
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], str.KeyPath
call fcn.0040ddc0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Failed_to_write_registry_value.
push ecx
mov ecx, 0x16928cc
call fcn.00411fdd
lea ecx, [ebp - 0x2c]
call fcn.0040a63a
lea ecx, [ebp - 0x4c]
call fcn.0040a63a
mov edx, str.OrapiWriteFail:_RegSetValueExW
jmp 0x4112ec
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0xa8], 0x43e538
mov word [ebp - 0x9c], ax
mov eax, dword [edi]
mov dword [ebp - 0xb0], eax
xor eax, eax
mov word [ebp - 0xac], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa4], str.Win32ErrorCode
mov dword [ebp - 0xb8], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0xb4], str.RegistryValueName
push dword [eax]
call fcn.0040a5fb
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x43e528
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], str.KeyName
call fcn.0040ddc0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Failed_to_open_registry_key.
push ecx
mov ecx, 0x16928cd
call fcn.00411fdd
lea ecx, [ebp - 0x2c]
call fcn.0040a63a
lea ecx, [ebp - 0x4c]
call fcn.0040a63a
mov edx, str.OrapiWriteFail:_TryOpenKey_in_WriteValue
mov ecx, dword [ebp - 0x54]
call fcn.00410e74
mov eax, dword [ebp - 0x58]
inc eax
cmp byte [ebp - 0x4d], 0
push 0
mov dword [ebp - 0x58], eax
pop edx
jne 0x4110fd
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
test ecx, ecx
je 0x41131a
mov dword [ebp - 0x5c], edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc4]
call fcn.0040f24d
test esi, esi
je 0x411331
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, edi
jmp 0x411337
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004370bb
leave
ret 4
push edx
sub eax, 7
je 0x411363
push 0x599491
call fcn.0040e5ee
push 0x59948f
jmp 0x41135e