Function at 0x403210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4973be
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ba110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4a6a14
lea ecx, [ebp - 0x10]
call fcn.00401ef0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
je 0x40352c
nop
mov ecx, dword [0x4bb674]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4a6a18
mov dword [ebp - 0x1c], ecx
call edi
mov esi, eax
test esi, esi
je 0x4032d0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401970
test eax, eax
je 0x4032d0
lea eax, [esi + 1]
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x403297
test esi, esi
jne 0x4032b5
push eax
push esi
push 0xffffffffffffffff
push 0x4a6a18
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4032b5
xor edx, edx
mov word [esi + eax*2 - 2], dx
lea ecx, [ebp - 0x1c]
call fcn.00401b30
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
mov byte [ebp - 4], 1
mov ebx, dword [0x4bb674]
push str._:__
mov dword [ebp - 0x18], ebx
call edi
mov esi, eax
test esi, esi
je 0x40333f
push esi
lea ecx, [ebp - 0x18]
call fcn.00401970
test eax, eax
je 0x40333c
inc esi
mov edi, dword [ebp - 0x18]
jne 0x403301
test edi, edi
jne 0x40331f
push esi
push edi
push 0xffffffffffffffff
push str._:__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40331f
xor edx, edx
mov word [edi + eax*2 - 2], dx
lea ecx, [ebp - 0x18]
call fcn.00401b30
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebx - 8], eax
mov word [ebx + eax*2], cx
jmp 0x40333f
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov edi, dword [0x4bb674]
push 0x4a6a24
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4033ad
push esi
lea ecx, [ebp - 0x14]
call fcn.00401970
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x4033ad
inc esi
jne 0x403374
test edi, edi
jne 0x403392
push esi
push edi
push 0xffffffffffffffff
push 0x4a6a24
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x403392
xor edx, edx
mov word [edi + eax*2 - 2], dx
lea ecx, [ebp - 0x14]
call fcn.00401b30
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
mov esi, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
lea edx, [esi + 8]
mov byte [ebp - 4], 3
call fcn.00402180
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00402180
push eax
lea eax, [ebp - 0x28]
lea edx, [esi + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00402180
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00402180
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov esi, dword [eax - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.004020e0
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x403436
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x403436
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x40345d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40345d
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x2c]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x403484
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x403484
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4034ab
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4034ab
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
lea edx, [edi - 0xc]
cmp edx, dword [0x4bb670]
je 0x4034cd
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4034cd
push esi
call fcn.00473f58
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, dword [0x4bb670]
je 0x4034ef
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4034ef
push esi
call fcn.00473f58
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4bb670]
je 0x403518
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403518
push esi
call fcn.00473f58
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 4]
jne 0x403260
mov edi, dword [0x4bb674]
push 0x4a6a28
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40359f
push esi
lea ecx, [ebp + 8]
call fcn.00401970
test eax, eax
je 0x40359c
lea eax, [esi + 1]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x403561
test esi, esi
jne 0x40357f
push eax
push esi
push 0xffffffffffffffff
push 0x4a6a28
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40357f
xor edx, edx
mov word [esi + eax*2 - 2], dx
lea ecx, [ebp + 8]
call fcn.00401b30
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
jmp 0x40359f
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 8
mov esi, dword [edi - 8]
push edi
lea eax, [ebp - 0x10]
call fcn.004020e0
lea edx, [edi - 0xc]
mov byte [ebp - 4], 0
cmp edx, dword [0x4bb670]
je 0x4035d5
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4035d5
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 8]
push edi
lea ecx, [ebp - 0x10]
call fcn.00401810
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4035ef
xor eax, eax
jmp 0x4035fa
xor ecx, ecx
mov dword [esi - 8], edi
mov word [esi + edi*2], cx
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edx, [ebx + 1]
push edx
call fcn.0045dd6a
mov esi, dword [esi - 8]
add esp, 4
push esi
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00401810
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x403639
xor eax, eax
jmp 0x403642
xor ecx, ecx
mov dword [eax - 8], esi
mov word [eax + esi*2], cx
push 0
push 0
push ebx
push edi
push esi
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov byte [edi + ebx], 0
mov edx, dword [0x4bb674]
mov dword [ebp - 0x2c], ebx
mov dword [ebp + 8], edx
push edi
lea eax, [ebp + 8]
push 0x4a6a2c
push eax
mov byte [ebp - 4], 9
call fcn.004011c0
add esp, 0xc
push 0xf2
push ecx
mov ecx, dword [0x4bb674]
mov esi, esp
mov dword [ebp - 0x28], esp
push str.misc::_SeTag::SaveToRegister
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x403702
mov edx, eax
push edx
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x403702
mov eax, dword [ebp - 0x30]
inc eax
mov ecx, dword [esi]
mov dword [ebp - 0x30], ecx
jne 0x4036c1
test ecx, ecx
jne 0x4036e5
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0xffffffffffffffff
push str.misc::_SeTag::SaveToRegister
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4036e5
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov word [edx + eax*2 - 2], cx
mov ecx, esi
call fcn.00401b30
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov dword [ecx - 8], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [ebp - 4], 0xa
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x40373f
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x40372e
mov ebx, eax
call fcn.00401c10
jmp 0x403730
xor eax, eax
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x2c]
mov ecx, eax
mov dword [0x4bd588], ecx
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 9
call fcn.00401d00
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x403771
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403771
push esi
call fcn.00473f58
add esp, 4
or eax, 0xffffffff
mov ecx, ebx
test ebx, ebx
je 0x403796
mov esi, edi
lea esp, [esp]
inc eax
dec ebx
cmp eax, 4
jl 0x403789
xor eax, eax
mov dl, byte [eax + 0x4a6a04]
xor byte [esi], dl
inc esi
test ebx, ebx
jne 0x403780
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax]
push edi
push 3
push 0
push 0x4a6a80
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push edi
mov dword [ebp + 0xc], esi
call fcn.00473f58
mov edx, dword [0x4bb674]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.write_SE_key_with_result___d__0___is_succeed_
push eax
mov byte [ebp - 4], 0xc
call fcn.004011c0
add esp, 0x10
push 0xff
push ecx
mov ecx, dword [0x4bb674]
mov edi, esp
mov dword [ebp - 0x30], esp
push str.misc::_SeTag::SaveToRegister
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x40384e
push ebx
mov ecx, edi
call fcn.00401970
test eax, eax
je 0x40384e
inc ebx
mov esi, dword [edi]
jne 0x403810
test esi, esi
jne 0x40382e
push ebx
push esi
push 0xffffffffffffffff
push str.misc::_SeTag::SaveToRegister
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40382e
xor edx, edx
mov word [esi + eax*2 - 2], dx
mov ecx, edi
call fcn.00401b30
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi]
mov esi, dword [ebp + 0xc]
mov dword [ecx - 8], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [ebp - 4], 0xd
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x403888
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40387a
mov ebx, eax
call fcn.00401c10
jmp 0x40387c
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0xd
mov dword [0x4bd588], ecx
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 0xc
call fcn.00401d00
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4038ba
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4038ba
push edi
call fcn.00473f58
add esp, 4
mov edi, dword [ebp - 0x10]
lea edx, [edi - 0xc]
cmp edx, dword [0x4bb670]
je 0x4038df
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4038df
push edi
call fcn.00473f58
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8