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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov ebx, ecx
lea eax, [0x5bf6a4]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], str.SystemSystemInformationSystemSystemInformationSystem_setting:_Ok._n
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 0
lea esi, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov edx, esi
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hf96a8ea7c
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
push esi
push 0x20019
push 0
push edi
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
mov esi, eax
test eax, eax
mov dword [ebp - 0x48], eax
jne 0x54a646
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x18], 0
je 0x54a65a
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
test esi, esi
mov dword [ebp - 0x80], ebx
je 0x54a80b
call sym.rand::rngs::thread::thread_rng::hb92ce65f606249f1
mov dword [ebp - 0x3c], str.Lazy_instance_has_previously_been_poisoned
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 8
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3c]
call sym.__ZN95__LT_alloc..string..String_u20_as_u20_core..iter..traits..collect..FromIterator_LT_char_GT__GT_9from_iter17h3b53873dd94f
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
sub eax, esi
cmp eax, ebx
jb 0x54ae26
mov eax, dword [ebp - 0x5c]
add eax, esi
push ebx
push edi
push eax
call sym._memcpy
add esp, 0xc
add esi, ebx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x54], esi
je 0x54a6c5
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x54a6e7
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x54b336
mov dword [0x5da100], eax
push 6
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x54b336
mov word [eax + 4], 0x6d65
mov dword [eax], 0x74737953
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 6
mov dword [ebp - 0x34], 6
mov byte [ebp - 0x30], 0
mov edx, 0x5bf6aa
lea ecx, [ebp - 0x3c]
push 0x11
call dbg._push
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], 1
add ebx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x30], 0
lea esi, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov edx, esi
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hf96a8ea7c
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x60]
push esi
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExW
mov esi, eax
test eax, eax
je 0x54a919
mov dword [ebp - 0x40], 0
mov ebx, esi
cmp dword [ebp - 0x18], 0
je 0x54a7b2
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
test esi, esi
je 0x54a932
cmp dword [ebp - 0x64], 0
je 0x54a7d0
push dword [ebp - 0x50]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp byte [ebp - 0x40], 3
jne 0x54b2c3
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push esi
call dword [edi]
add esp, 4
cmp dword [edi + 4], 0
je 0x54b2b5
cmp dword [edi + 8], 9
jb 0x54a7f8
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
jmp 0x54b2b5
lea eax, [0x5bf6e3]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], str.DisplayModeError_set_value_key
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3c]
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hf96a8ea7c
mov dword [ebp - 0x70], 0x800
mov dword [ebp - 0x60], 0
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x54a863
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x54b347
mov dword [0x5da100], eax
push 0x800
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x54b347
mov edi, dword [ebp - 0x1c]
lea ebx, [ebp - 0x70]
lea esi, [ebp - 0x60]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x800
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0
nop word cs:[eax + eax]
nop
push ebx
push dword [ebp - 0x10]
push esi
push 0
push edi
push dword [ebp - 0x48]
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x54a8da
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
sub ecx, edx
cmp ecx, eax
jae 0x54a8a0
lea ecx, [ebp - 0x3c]
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
jmp 0x54a8a0
test eax, eax
jne 0x54a8f0
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x70]
cmp eax, 0xb
mov dword [ebp - 0x34], ebx
jbe 0x54a98a
cmp dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
je 0x54a907
push eax
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x18], 0
je 0x54af56
push dword [ebp - 0x1c]
jmp 0x54af49
movzx ebx, byte [ebp - 0x3c]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], 0
jne 0x54a7a4
jmp 0x54a7b2
mov dword [ebp - 0x3c], 0x5bf6d0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], str.Lazy_instance_has_previously_been_poisoned
cmp bl, 1
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x3c]
call dbg._print
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x5c]
lea ecx, [edx + eax]
test eax, eax
mov dword [ebp - 0x44], ecx
je 0x54abd1
movzx eax, byte [edx]
test al, al
js 0x54ade0
inc edx
mov dword [ebp - 0x10], eax
xor esi, esi
jmp 0x54afb6
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], ecx
je 0x54a9aa
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov esi, 0xde
cmp al, 7
ja 0x54b2dd
movzx eax, al
mov ecx, 0x86
mov edx, 0
bt ecx, eax
mov ecx, 0
jae 0x54aeb2
mov esi, ebx
mov eax, ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
and esi, 0xfffffffe
shr eax, 2
bt ebx, 1
adc eax, 0
jne 0x54b2f0
mov eax, dword [ebp - 0x10]
xor edi, edi
add esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], esi
test di, di
je 0x54aa61
nop word cs:[eax + eax]
nop dword [eax]
movzx eax, word [ebp - 0x44]
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
je 0x54aa85
movzx ebx, ax
cmp ax, 0x7f
ja 0x54aa94
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x38]
jne 0x54aa50
lea ecx, [ebp - 0x3c]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve_for_push::h1c3e276d8b01ed9d
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov byte [eax + edx], bl
inc edx
mov dword [ebp - 0x34], edx
test di, di
jne 0x54aa20
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x54abea
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov ecx, eax
and ecx, 0xf800
cmp ecx, 0xd800
jne 0x54aa34
movzx ecx, ax
cmp ecx, 0xdbff
jbe 0x54aac6
xor edi, edi
jmp 0x54aafa
cmp ebx, 0x800
mov dword [ebp - 0x1c], 0
jae 0x54ab2f
mov eax, ebx
and bl, 0x3f
xor edi, edi
shr eax, 6
or bl, 0x80
or al, 0xc0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], bl
mov ebx, 2
jmp 0x54ab55
mov ebx, dword [ebp - 0x20]
cmp ebx, esi
je 0x54aaf5
movzx ecx, word [ebx]
add ebx, 2
mov di, 1
mov dword [ebp - 0x20], ebx
mov edx, ecx
add edx, 0x2000
movzx edx, dx
cmp edx, 0xfc00
jae 0x54ab08
mov eax, ecx
mov word [ebp - 0x44], cx
jmp 0x54aafa
xor edi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov ebx, 0xfffd
jmp 0x54ab31
movzx ecx, cx
and eax, 0x3ff
mov dword [ebp - 0x1c], 0
shl eax, 0xa
and ecx, 0x3ff
lea ebx, [eax + ecx + 0x10000]
cmp ebx, 0x10000
jae 0x54ab9d
xor edi, edi
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [ebp - 0x1c], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [ebp - 0x1b], al
mov byte [ebp - 0x1a], bl
mov ebx, 3
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
sub eax, esi
cmp eax, ebx
jb 0x54ab8a
mov eax, dword [ebp - 0x3c]
add eax, esi
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sym._memcpy
add esp, 0xc
add esi, ebx
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x40]
test di, di
jne 0x54aa20
jmp 0x54aa61
lea ecx, [ebp - 0x3c]
mov edx, esi
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov esi, dword [ebp - 0x34]
jmp 0x54ab61
mov eax, ebx
xor edi, edi
shr eax, 0x12
or al, 0xf0
mov byte [ebp - 0x1c], al
mov eax, ebx
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [ebp - 0x1b], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], bl
mov ebx, 4
jmp 0x54ab55
mov dword [ebp - 0x20], 0
xor esi, esi
xor edx, edx
mov dword [ebp - 0x10], 0
xor eax, eax
jmp 0x54afd5
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
inc eax
nop word cs:[eax + eax]
nop
cmp eax, 1
je 0x54ae3c
cmp byte [ecx + eax - 2], 0
lea esi, [eax - 1]
mov eax, esi
je 0x54ac00
cmp byte [ebp - 0x4c], 7
jne 0x54ae48
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x44], ecx
mov ebx, esi
lea edx, [ecx + edi]
mov dword [ebp - 0x78], edi
sub ebx, edi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x6c], ebx
jmp 0x54ac90
mov ebx, esi
lea edx, [ecx + eax]
sub ebx, eax
jb 0x54ae5b
cmp ebx, 8
jae 0x54acb4
test ebx, ebx
je 0x54ae5b
xor edi, edi
nop
cmp byte [edx + edi], 0
je 0x54ad42
inc edi
cmp ebx, edi
jne 0x54aca0
jmp 0x54ae5b
lea ecx, [edx + 3]
and ecx, 0xfffffffc
sub ecx, edx
je 0x54ace3
cmp ecx, ebx
cmovae ecx, ebx
test ecx, ecx
je 0x54ace3
xor edi, edi
cmp byte [edx + edi], 0
je 0x54ad42
inc edi
cmp ecx, edi
jne 0x54acc9
lea edi, [ebx - 8]
mov dword [ebp - 0x74], eax
cmp ecx, edi
mov dword [ebp - 0x20], edi
jbe 0x54acf0
jmp 0x54ad23
lea edi, [ebx - 8]
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x20], edi
nop
mov eax, dword [edx + ecx]
mov edi, eax
add eax, 0xfefefeff
not edi
and eax, edi
test eax, 0x80808080
jne 0x54ad23
mov eax, dword [edx + ecx + 4]
mov edi, eax
add eax, 0xfefefeff
not edi
and eax, edi
test eax, 0x80808080
jne 0x54ad23
add ecx, 8
cmp ecx, dword [ebp - 0x20]
jbe 0x54acf0
mov eax, dword [ebp - 0x74]
cmp ebx, ecx
je 0x54ae5b
nop
cmp byte [edx + ecx], 0
je 0x54ad40
inc ecx
cmp ebx, ecx
jne 0x54ad30
jmp 0x54ae5b
mov edi, ecx
mov ecx, dword [ebp - 0x44]
add edi, eax
mov eax, edi
inc eax
je 0x54ac83
cmp esi, eax
jb 0x54ac83
mov ebx, eax
movzx eax, byte [ecx + edi]
cmp al, byte [ebp - 0x24]
mov eax, ebx
jne 0x54ac83
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
sub edi, dword [ebp - 0x78]
sub eax, ecx
mov edx, ecx
cmp eax, edi
jb 0x54adba
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
add eax, edx
push edi
push ecx
push eax
call sym._memcpy
add esp, 0xc
mov edx, dword [ebp - 0x40]
add edx, edi
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x18], edx
je 0x54adce
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov eax, ebx
mov byte [edi + edx], 0xa
inc edx
mov dword [ebp - 0x68], edi
mov edi, ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x14], edx
jmp 0x54ac71
lea ecx, [ebp - 0x1c]
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
jmp 0x54ad7d
lea ecx, [ebp - 0x1c]
push 1
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov edx, dword [ebp - 0x14]
jmp 0x54ad9d
mov edi, edx
movzx edx, byte [edx + 1]
mov esi, eax
and esi, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x54af6c
movzx ecx, byte [edi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x54af7d
movzx eax, byte [edi + 3]
and esi, 7
shl ecx, 6
add edi, 4
shl esi, 0x12
and eax, 0x3f
or eax, ecx
or esi, eax
jmp 0x54af85
lea ecx, [ebp - 0x5c]
mov edx, esi
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov esi, dword [ebp - 0x54]
jmp 0x54a69c
xor esi, esi
cmp byte [ebp - 0x4c], 7
je 0x54ac1f
mov edi, edx
and edi, 0xffffff00
cmp byte [ebp - 0x4c], 0xc
jne 0x54aeb8
jmp 0x54aedc
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x6c]
sub eax, esi
cmp eax, edi
jb 0x54b31d
mov eax, dword [ebp - 0x68]
add eax, esi
push edi
push dword [ebp - 0x50]
push eax
call sym._memcpy
add esp, 0xc
mov edx, dword [ebp - 0x18]
add esi, edi
mov ecx, dword [ebp - 0x1c]
mov ebx, edx
and ebx, 0xffffff00
cmp dword [ebp - 0x7c], 0
je 0x54aeb0
push dword [ebp - 0x44]
push 0
push dword [0x5da100]
mov edi, edx
mov dword [ebp - 0x20], ecx
call sub.kernel32.dll_HeapFree
mov ecx, dword [ebp - 0x20]
mov edx, edi
mov edi, ebx
cmp byte [ebp - 0x4c], 0xc
je 0x54aedc
cmp dword [ebp - 0x64], 0
je 0x54aedc
push dword [ebp - 0x10]
push 0
push dword [0x5da100]
mov dword [ebp - 0x10], edi
mov edi, ecx
mov ebx, edx
call sub.kernel32.dll_HeapFree
mov ecx, edi
mov edi, dword [ebp - 0x10]
mov edx, ebx
test ecx, ecx
je 0x54af19
movzx eax, dl
or edi, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x54]
sub eax, edi
cmp eax, esi
jb 0x54b303
mov eax, dword [ebp - 0x5c]
add eax, edi
push esi
push ecx
push eax
mov ebx, ecx
call sym._memcpy
mov eax, ebx
add esp, 0xc
add edi, esi
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x54], edi
jne 0x54af48
jmp 0x54af56
cmp dl, 3
jne 0x54af56
mov edi, dword [esi]
mov ebx, dword [esi + 4]
push edi
call dword [ebx]
add esp, 4
cmp dword [ebx + 4], 0
je 0x54af46
cmp dword [ebx + 8], 9
jb 0x54af38
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, esi
push eax
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x48]
test eax, eax
js 0x54b2c3
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x54b2c3
shl esi, 6
add edi, 2
or esi, edx
mov edx, edi
mov dword [ebp - 0x10], esi
xor esi, esi
jmp 0x54afb6
shl esi, 0xc
add edi, 3
or esi, ecx
mov ecx, dword [ebp - 0x44]
mov edx, edi
cmp esi, 0xffff
ja 0x54af99
mov dword [ebp - 0x10], esi
xor esi, esi
jmp 0x54afb6
lea eax, [esi + 0xff0000]
and esi, 0x3ff
shr eax, 0xa
or esi, 0xdc00
or eax, 0xd800
mov dword [ebp - 0x10], eax
sub ecx, edx
mov eax, 0xffffffff
add ecx, 3
cmovae eax, ecx
mov cx, 1
shr eax, 2
cmp si, 1
mov dword [ebp - 0x20], ecx
sbb eax, 0xffffffff
inc eax
cmp eax, 4
mov edi, 3
cmovae edi, eax
cmp edi, 0x3ffffffe
ja 0x54b366
lea ebx, [edi + edi + 2]
mov dword [ebp - 0x48], esi
test ebx, ebx
js 0x54b36d
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
mov esi, edx
test eax, eax
jne 0x54b01f
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x54b358
mov dword [0x5da100], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x54b358
mov ecx, eax
mov eax, dword [ebp - 0x10]
inc edi
mov ebx, 1
mov edx, esi
mov word [ecx], ax
mov eax, 0xfffffffe
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edi
jmp 0x54b06c
mov dword [ebp - 0x10], eax
xor eax, eax
cmp ebx, dword [ebp - 0x38]
je 0x54b145
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
mov word [ecx + ebx*2], si
inc ebx
add eax, 0xfffffffe
mov esi, dword [ebp - 0x48]
test edx, edx
mov dword [ebp - 0x34], ebx
je 0x54b0a0
test si, si
jne 0x54b050
cmp edx, dword [ebp - 0x44]
je 0x54b0a0
mov dword [ebp - 0x10], eax
movzx eax, byte [edx]
test al, al
js 0x54b0ca
mov esi, eax
inc edx
xor eax, eax
jmp 0x54b055
cmp word [ebp - 0x20], 1
mov edi, dword [ebp - 0x38]
jne 0x54b1bf
xor esi, esi
cmp ebx, edi
mov edx, 0
mov edi, 0
mov dword [ebp - 0x20], 0
jne 0x54b064
jmp 0x54b16d
mov edi, edx
movzx edx, byte [edx + 1]
mov esi, eax
and esi, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x54b18e
mov dword [ebp - 0x4c], edi
movzx edi, byte [edi + 2]
shl edx, 6
and edi, 0x3f
or edi, edx
cmp al, 0xf0
mov edx, edi
jb 0x54b19f
mov edi, dword [ebp - 0x4c]
and esi, 7
shl edx, 6
shl esi, 0x12
movzx eax, byte [edi + 3]
add edi, 4
and eax, 0x3f
or eax, edx
mov edx, edi
or esi, eax
cmp esi, 0xffff
jbe 0x54b1b8
lea edi, [esi + 0xff0000]
and esi, 0x3ff
shr edi, 0xa
or esi, 0xdc00
or edi, 0xd800
mov eax, esi
mov esi, edi
jmp 0x54b055
mov edi, dword [ebp - 0x44]
mov ecx, 0xffffffff
sub edi, edx
add edi, 3
cmovb edi, ecx
shr edi, 2
cmp ax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
sbb edi, 0xffffffff
cmp word [ebp - 0x20], 1
sbb edi, 0xffffffff
mov dword [ebp - 0x4c], edx
inc edi
lea ecx, [ebp - 0x3c]
mov edx, ebx
push edi
mov edi, eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h00d8c60031551947
mov edx, dword [ebp - 0x4c]
mov eax, edi
add esp, 4
mov ecx, dword [ebp - 0x3c]
jmp 0x54b064
shl esi, 6
add edi, 2
xor eax, eax
or esi, edx
mov edx, edi
jmp 0x54b055
mov eax, dword [ebp - 0x4c]
shl esi, 0xc
or esi, edx
add eax, 3
mov edx, eax
cmp esi, 0xffff
ja 0x54b121
xor eax, eax
jmp 0x54b055
mov ebx, eax
mov dword [ebp - 0x10], eax
neg ebx
jae 0x54b209
js 0x54b3a0
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
mov dword [ebp - 0x6c], ecx
test eax, eax
jne 0x54b1ef
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x54b1ff
mov dword [0x5da100], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x6c]
test eax, eax
jne 0x54b20e
mov ecx, 1
jmp 0x54b35d
mov eax, 1
push ebx
push ecx
mov dword [ebp - 0x48], eax
push eax
mov esi, ecx
call sym._memcpy
add esp, 0xc
test edi, edi
je 0x54b230
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
lea eax, [0x5bf6e3]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], str.DisplayModeError_set_value_key
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3c]
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hf96a8ea7c
mov edi, dword [ebp - 0x1c]
push ebx
mov esi, dword [ebp - 0x48]
push esi
push 1
push 0
push edi
push dword [ebp - 0x40]
call sub.advapi32.dll_RegSetValueExW
cmp dword [ebp - 0x18], 0
mov ebx, eax
je 0x54b283
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x10], 0
je 0x54b297
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
test ebx, ebx
jne 0x54b374
mov eax, dword [ebp - 0x40]
test eax, eax
js 0x54b2ac
push eax
call sub.advapi32.dll_RegCloseKey
cmp dword [ebp - 0x64], 0
mov ebx, dword [ebp - 0x50]
je 0x54b2c3
push ebx
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x5c]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
xor ecx, ecx
cmp byte [ebp - 0x4c], 0xc
jne 0x54aeb8
jmp 0x54aedc
lea ecx, [ebp - 0x3c]
xor edx, edx
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
jmp 0x54aa00
mov ebx, ecx
lea ecx, [ebp - 0x5c]
mov edx, edi
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
mov ecx, ebx
add esp, 4
mov edi, dword [ebp - 0x54]
jmp 0x54aef8
lea ecx, [ebp - 0x1c]
mov edx, esi
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0cde91b95791b2af
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
jmp 0x54ae71
mov ecx, 1
mov edx, 6
call dbg.handle_alloc_error
ud2
mov ecx, 1
mov edx, 0x800
call dbg.handle_alloc_error
ud2
mov ecx, 2
mov edx, ebx
call dbg.handle_alloc_error
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0
mov ecx, 0x5bf6e3
mov edx, 0x13
push 0x5bf6f8
push 0x5bf614
lea eax, [ebp - 0x3c]
push eax
call dbg.unwrap_failed
add esp, 0xc
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2