Function at 0x6de8ba30
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x6e8
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x690], 0x104
mov dword [ebp - 0x6a0], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x6b0], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x69c], eax
test byte [0x6dea0028], 8
jne 0x6de8c350
mov ecx, dword [ebp - 0x6a0]
test ecx, ecx
je 0x6de8bda8
mov eax, dword [ebp - 0x69c]
cmp eax, 2
jbe 0x6de8ba9d
cmp eax, 4
jne 0x6de8bda8
mov esi, dword [ebp - 0x6a0]
mov edx, dword [esi + 0xc]
lea eax, [edx*4]
cmp eax, dword [esi + 8]
jne 0x6de8bda8
test byte [0x6dea0028], 8
jne 0x6de8c3a0
test edx, edx
je 0x6de8bc9d
mov eax, dword [ebp - 0x6a0]
mov dword [ebp - 0x6b4], edi
xor esi, esi
mov eax, dword [eax + 0x10]
jmp 0x6de8bae9
inc esi
cmp edx, esi
jbe 0x6de8bbfc
test byte [0x6dea0028], 8
je 0x6de8bae0
lea edx, [esi + esi*4]
lea ebx, [eax + edx*8]
mov eax, dword [ebx + 0xc]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x6a4], eax
lea eax, [ebx + 0x10]
mov edi, eax
mov dword [ebp - 0x6ac], edx
shr edi, 0x10
mov dword [ebp - 0x6a8], ecx
je 0x6de8be70
movzx eax, byte [ebx + 0x1f]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0x1e]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0x1d]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0x1c]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0x1b]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x1a]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0x19]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 0x18]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 0x16]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], 0x6dea3420
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x6ac]
mov ecx, dword [ebp - 0x6a8]
mov edi, dword [ebp - 0x6a4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], esi
inc esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.___lu:_app_data__Ix__semantic__lx__flags__lx__instance__s__obj_id__lx__how__lx__name__s_n
mov dword [esp + 8], str.dinput_device_BuildActionMap
mov dword [esp + 4], 0x6dea0028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [ebp - 0x6a0]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
cmp edx, esi
ja 0x6de8bae9
lea edx, [edx + edx*4]
mov edi, dword [ebp - 0x6b4]
lea ecx, [eax + edx*8]
cmp ecx, eax
jbe 0x6de8bc9d
mov dword [ebp - 0x6a4], edi
mov esi, ecx
jmp 0x6de8bc2e
mov dword [eax + 0x24], 2
add eax, 0x28
cmp esi, eax
jbe 0x6de8bc97
mov edx, dword [eax + 4]
test edx, edx
je 0x6de8bda8
cmp dword [ebp - 0x69c], 1
je 0x6de8bdc0
mov ecx, dword [eax + 8]
test cl, 2
jne 0x6de8bc20
and edx, 0xf0000000
mov dword [eax + 0x24], 0
cmp edx, 0x80000000
je 0x6de8be30
and ecx, 4
jne 0x6de8bc27
mov edx, dword [0x6deaead0]
mov ebx, dword [0x6deaeac8]
add eax, 0x28
mov ecx, dword [0x6deaeacc]
mov dword [eax - 0x10], edx
mov edx, dword [0x6deaead4]
mov dword [eax - 0x18], ebx
mov dword [eax - 0x14], ecx
mov dword [eax - 0xc], edx
cmp esi, eax
ja 0x6de8bc2e
mov edi, dword [ebp - 0x6a4]
test byte [ebp - 0x69c], 4
je 0x6de8be98
mov ebx, dword [edi + 0x4fc]
mov dword [esp + 4], 4
mov dword [ebp - 0x6a8], ebx
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_calloc]
mov dword [ebp - 0x6a4], eax
test eax, eax
je 0x6de8c508
mov eax, dword [ebp - 0x6a0]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov dword [ebp - 0x69c], ecx
cmp esi, ecx
jae 0x6de8c068
shl ebx, 4
mov dword [ebp - 0x6b0], esi
mov eax, esi
mov esi, ecx
mov dword [ebp - 0x6bc], ebx
lea ebx, [edi + 0x10]
mov dword [ebp - 0x6ac], edi
jmp 0x6de8bd23
add eax, 0x28
cmp esi, eax
jbe 0x6de8c0b0
mov edi, dword [eax + 0x24]
test edi, edi
je 0x6de8bd18
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x6de8bd18
mov edi, dword [ebx]
cmp dword [eax + 0x10], edi
jne 0x6de8bd18
mov edi, dword [ebx + 4]
cmp dword [eax + 0x14], edi
jne 0x6de8bd18
mov edi, dword [ebx + 8]
cmp dword [eax + 0x18], edi
jne 0x6de8bd18
mov edi, dword [ebx + 0xc]
cmp dword [eax + 0x1c], edi
jne 0x6de8bd18
mov edi, dword [ebp - 0x6ac]
mov edx, dword [edi + 0x500]
mov edi, dword [ebp - 0x6bc]
add edi, edx
mov dword [ebp - 0x6b4], edx
mov dword [ebp - 0x6b8], edi
mov edi, edx
mov edx, dword [ebp - 0x6b8]
cmp edi, edx
jae 0x6de8bd18
mov edx, edi
mov edi, dword [ebp - 0x6ac]
cmp ecx, dword [edx + 8]
je 0x6de8c4d0
add edx, 0x10
cmp dword [ebp - 0x6b8], edx
ja 0x6de8bd84
mov dword [ebp - 0x6ac], edi
jmp 0x6de8bd18
mov eax, 0x80070057
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea ecx, [eax + 0x10]
mov edi, ecx
mov ecx, dword [eax + 0x10]
cmp ecx, dword [0x6deaeac8]
je 0x6de8be40
mov ebx, dword [ebp - 0x6a4]
add ebx, 0x10
mov dword [ebp - 0x6a8], ebx
mov ebx, dword [ebp - 0x6a4]
cmp ecx, dword [ebx + 0x10]
jne 0x6de8bc27
mov ebx, dword [ebp - 0x6a8]
mov ebx, dword [ebx + 4]
cmp dword [edi + 4], ebx
jne 0x6de8bc27
mov ebx, dword [ebp - 0x6a8]
mov ebx, dword [ebx + 8]
cmp dword [edi + 8], ebx
jne 0x6de8bc27
mov ebx, dword [ebp - 0x6a8]
mov ebx, dword [ebx + 0xc]
cmp dword [edi + 0xc], ebx
jne 0x6de8bc27
jmp 0x6de8bc46
and ecx, 0xfffffffb
mov dword [eax + 8], ecx
jmp 0x6de8bc6c
mov ebx, dword [0x6deaeacc]
cmp dword [edi + 4], ebx
jne 0x6de8bdd0
mov ebx, dword [0x6deaead0]
cmp dword [edi + 8], ebx
jne 0x6de8bdd0
mov ebx, dword [0x6deaead4]
cmp dword [edi + 0xc], ebx
jne 0x6de8bdd0
jmp 0x6de8bc46
movzx eax, ax
mov dword [esp], 0x6dea3410
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov ecx, dword [ebp - 0x6a8]
mov edx, dword [ebp - 0x6ac]
jmp 0x6de8bb95
mov edx, dword [ebp - 0x6b0]
mov ebx, dword [ebp - 0x6b0]
lea eax, [ebp - 0x66c]
lea ecx, [ebp - 0x466]
test edx, edx
je 0x6de8c48a
lea esi, [esi]
nop
movzx edx, word [ebx]
test dx, dx
je 0x6de8bed6
add eax, 2
add ebx, 2
mov word [eax - 2], dx
cmp eax, ecx
jne 0x6de8bec0
xor edx, edx
mov word [eax], dx
mov eax, dword [edi]
lea edx, [ebp - 0x464]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [ebp - 0x464], 0x44c
call dword [eax + 0x3c]
mov esi, dword [ebp - 0x6a0]
lea eax, [ebp - 0x68c]
sub esp, 8
mov dword [esp + 4], eax
lea eax, [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x6de8bcaa
mov dword [esp], 0
mov ecx, dword [ebp - 0x68c]
lea edx, [ebp - 0x66c]
lea eax, [ebp - 0x43c]
call sym._get_mapping_key
mov dword [ebp - 0x69c], eax
test eax, eax
je 0x6de8c4f1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x6de8c038
mov dword [ebp - 0x6a4], edi
mov edi, ebx
mov ebx, esi
lea esi, [esi]
mov dword [ebp - 0x684], 4
mov eax, dword [ebx + 0x10]
lea esi, [edi + edi*4]
shl esi, 3
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], 0x6dea3726
mov dword [esp + 4], 9
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x67e]
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x684]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x688]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x67e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x69c]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x6de8c028
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0x688]
mov dword [eax + esi + 0x20], edx
mov edx, dword [ebp - 0x460]
mov eax, dword [ebx + 0x10]
mov dword [eax + esi + 0x10], edx
mov edx, dword [ebp - 0x45c]
mov dword [eax + esi + 0x14], edx
mov edx, dword [ebp - 0x458]
mov dword [eax + esi + 0x18], edx
mov ecx, dword [ebp - 0x454]
mov dword [eax + esi + 0x1c], ecx
mov eax, dword [ebx + 0x10]
mov dword [eax + esi + 0x24], 0x20
inc edi
cmp edi, dword [ebx + 0xc]
jb 0x6de8bf68
mov edi, dword [ebp - 0x6a4]
mov eax, dword [ebp - 0x69c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x68c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x6de8bcaa
mov ecx, dword [ebp - 0x6a8]
test ecx, ecx
je 0x6de8c468
mov edx, dword [ebp - 0x6a4]
xor eax, eax
jmp 0x6de8c089
inc eax
cmp eax, ecx
je 0x6de8c468
mov ebx, dword [edx + eax*4]
test ebx, ebx
je 0x6de8c080
mov eax, dword [ebp - 0x6a4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [ebp - 0x6ac]
mov esi, dword [ebp - 0x6b0]
lea eax, [edi + 0x48]
mov ecx, edi
mov dword [ebp - 0x6b0], eax
jmp 0x6de8c0df
add esi, 0x28
cmp dword [ebp - 0x69c], esi
jbe 0x6de8c1e0
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x6de8c0d0
mov eax, dword [esi + 8]
test al, 4
jne 0x6de8c0d0
mov edx, dword [esi + 4]
test dh, 0x40
jne 0x6de8c0d0
mov ebx, dword [ebp - 0x6a8]
mov edi, dword [ecx + 0x500]
shl ebx, 4
add ebx, edi
mov dword [ebp - 0x6ac], ebx
cmp edi, ebx
jae 0x6de8c0d0
and eax, 1
mov dword [ebp - 0x6bc], ecx
mov ebx, edx
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x6b8], esi
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 0x6a4]
sub eax, edi
sar eax, 4
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jne 0x6de8c310
mov eax, dword [ebp - 0x6b0]
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._device_object_matches_semantic
test eax, eax
je 0x6de8c310
mov edx, dword [ebp - 0x6b4]
mov eax, dword [esi + 8]
test edx, edx
je 0x6de8c17f
test eax, 0x1000000
je 0x6de8c310
mov ecx, dword [ebp - 0x6bc]
mov ebx, esi
mov esi, dword [ebp - 0x6b8]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x10]
add esi, 0x28
mov dword [esi - 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [esi - 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esi - 0x10], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi - 4], 0x20
mov dword [esi - 0xc], eax
mov eax, dword [ebp - 0x6a4]
sub ebx, dword [ecx + 0x500]
sar ebx, 4
mov dword [eax + ebx*4], 1
mov eax, dword [ecx + 0x4fc]
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x69c], esi
ja 0x6de8c0df
mov eax, dword [ebp - 0x6a0]
mov edx, dword [eax + 0x10]
cmp dword [ebp - 0x69c], edx
jbe 0x6de8c068
lea eax, [ecx + 0x48]
mov ebx, edx
mov dword [ebp - 0x6ac], eax
jmp 0x6de8c217
add ebx, 0x28
cmp dword [ebp - 0x69c], ebx
jbe 0x6de8c068
mov esi, dword [ebx + 0x24]
test esi, esi
jne 0x6de8c208
mov eax, dword [ebx + 8]
test al, 4
jne 0x6de8c208
mov edx, dword [ebx + 4]
test dh, 0x40
je 0x6de8c208
mov esi, dword [ebp - 0x6a8]
mov edi, dword [ecx + 0x500]
shl esi, 4
add esi, edi
mov dword [ebp - 0x6a0], esi
cmp edi, esi
jae 0x6de8c208
and eax, 1
mov dword [ebp - 0x6b8], ecx
mov esi, edx
mov dword [ebp - 0x6b0], eax
mov dword [ebp - 0x6b4], ebx
mov ebx, edi
mov eax, ebx
mov ecx, dword [ebp - 0x6a4]
sub eax, edi
sar eax, 4
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jne 0x6de8c330
mov eax, dword [ebp - 0x6ac]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._device_object_matches_semantic
test eax, eax
je 0x6de8c330
mov edx, dword [ebp - 0x6b0]
mov eax, dword [ebx + 8]
test edx, edx
je 0x6de8c2b3
test eax, 0x1000000
je 0x6de8c330
mov ecx, dword [ebp - 0x6b8]
mov esi, ebx
mov ebx, dword [ebp - 0x6b4]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 0x24], 0x20
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x6a4]
sub esi, dword [ecx + 0x500]
sar esi, 4
mov dword [eax + esi*4], 1
mov eax, dword [ecx + 0x4fc]
mov dword [ebp - 0x6a8], eax
jmp 0x6de8c208
add esi, 0x10
cmp dword [ebp - 0x6ac], esi
ja 0x6de8c129
mov esi, dword [ebp - 0x6b8]
mov ecx, dword [ebp - 0x6bc]
jmp 0x6de8c0d0
add ebx, 0x10
cmp dword [ebp - 0x6a0], ebx
ja 0x6de8c261
mov ebx, dword [ebp - 0x6b4]
mov ecx, dword [ebp - 0x6b8]
jmp 0x6de8c208
mov eax, dword [ebp - 0x6b0]
call sym._wine_dbgstr_wn.constprop.0
mov esi, dword [ebp - 0x69c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x6a0]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.iface__p__format__p__username__s__flags__lx_n
mov dword [esp + 8], str.dinput_device_BuildActionMap
mov dword [esp + 4], 0x6dea0028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6de8ba7b
lea eax, [esi + 0x44]
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, esi
mov esi, dword [esi + 0x24]
add eax, 0x14
mov ecx, eax
shr ecx, 0x10
je 0x6de8c4b0
mov edx, dword [ebp - 0x6a0]
movzx eax, byte [edx + 0x23]
mov dword [esp + 0x2c], eax
movzx eax, byte [edx + 0x22]
mov dword [esp + 0x28], eax
movzx eax, byte [edx + 0x21]
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 0x20]
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 0x1f]
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 0x1e]
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 0x1d]
mov dword [esp + 0x14], eax
movzx eax, byte [edx + 0x1c]
mov dword [esp + 0x10], eax
movzx eax, word [edx + 0x1a]
mov dword [esp + 0xc], eax
movzx eax, word [edx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x14]
mov dword [esp], 0x6dea3420
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6dea3640
mov dword [esp + 8], str.dinput_device_BuildActionMap
mov dword [esp + 4], 0x6dea0028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x6a0]
mov edx, dword [eax + 0xc]
jmp 0x6de8bac3
mov eax, dword [ebp - 0x6a4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0x690]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_GetUserNameW]
sub esp, 8
jmp 0x6de8bedb
movzx eax, ax
mov dword [esp], 0x6dea3410
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
jmp 0x6de8c426
mov dword [ebp - 0x6ac], edi
sub edx, dword [ebp - 0x6b4]
mov edi, dword [ebp - 0x6a4]
sar edx, 4
mov dword [edi + edx*4], 1
jmp 0x6de8bd18
mov eax, dword [ebp - 0x68c]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x6de8bcaa
mov eax, 0x8007000e
jmp 0x6de8bdad