Function at 0x403923
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x120c]
mov eax, 0x120c
call fcn.0043fc10
push 0xffffffffffffffff
push 0x466789
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x494284]
xor eax, ebp
mov dword [ebp + 0x1208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x121c]
xor ebx, ebx
mov edi, dword [ebp + 0x1214]
mov esi, dword [ebp + 0x1218]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.00405766
test eax, eax
js 0x403d25
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.0040774d
pop ecx
pop ecx
test eax, eax
jne 0x4039bd
mov eax, 0x80020009
jmp 0x403d25
mov ecx, dword [ebp - 0x20]
call fcn.00406e3f
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x208]
push eax
call fcn.00405766
test eax, eax
js 0x403d25
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x403ce0
sub eax, 9
je 0x403bca
dec eax
sub eax, 1
je 0x403adf
sub eax, 0x3ff5
jne 0x403d11
lea eax, [ebp + 0x208]
push eax
call fcn.00445520
add eax, 2
mov dword [ebp], ebx
push 1
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call fcn.00402341
add esp, 0xc
cmp eax, 0x100
jbe 0x403a3d
push eax
lea ecx, [ebp]
call fcn.00403d77
jmp 0x403a53
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x403a56
mov esi, dword [ebp]
test esi, esi
je 0x403ac4
cmp byte [ebp + 0x208], 0
lea edi, [ebp + 0x208]
je 0x403aaa
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x403a89
cmp byte [eax], 0x30
jne 0x403a89
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x403aa4
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403aa3
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x403aaa
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x403a69
mov ecx, dword [ebp - 0x1c]
mov word [esi], 0
push dword [ebp]
push dword [ebp - 0x18]
call fcn.00406ae3
mov esi, dword [ebp]
mov ebx, eax
jmp 0x403ac7
push 0xe
pop ebx
lea eax, [ebp + 4]
cmp esi, eax
je 0x403d04
lea ecx, [ebp]
call fcn.00404a3e
jmp 0x403d04
mov esi, ebx
mov dword [ebp - 0x24], esi
lea eax, [ebp + 0x208]
mov dword [ebp - 4], 3
push eax
call fcn.00445520
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004022eb
add esp, 0x10
test eax, eax
js 0x403b67
mov edi, dword [ebp - 0x14]
cmp edi, 0x400
jg 0x403b32
push edi
call fcn.004078d9
pop ecx
test al, al
je 0x403b32
mov eax, edi
call fcn.0043fb20
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x403b3e
push edi
lea ecx, [ebp - 0x24]
call fcn.00403d4d
mov esi, dword [ebp - 0x24]
push 3
shr edi, 1
lea ecx, [ebp + 0x208]
push edi
push ecx
push eax
call fcn.00403e19
test eax, eax
jne 0x403b71
test esi, esi
je 0x403b67
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.004455c9
pop ecx
test edi, edi
jne 0x403b58
mov eax, 0x8007000e
jmp 0x403d25
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ebx, eax
test ebx, ebx
jns 0x403b9e
test esi, esi
je 0x403b97
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.004455c9
pop ecx
test edi, edi
jne 0x403b88
mov eax, ebx
jmp 0x403d25
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00406ac9
mov ebx, eax
test esi, esi
je 0x403d04
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.004455c9
pop ecx
test edi, edi
jne 0x403bb6
jmp 0x403d04
lea eax, [ebp + 0x208]
push eax
call fcn.00445520
mov dword [ebp - 0x2c], eax
pop ecx
test al, 1
jne 0x403c4c
cdq
sub eax, edx
mov dword [ebp + 0x104], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x28], esi
push 1
mov dword [ebp - 4], 4
push esi
mov byte [ebp - 4], 5
call fcn.00402341
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x403c18
push eax
lea ecx, [ebp + 0x104]
call fcn.00403d77
jmp 0x403c37
lea eax, [ebp + 0x108]
mov dword [ebp + 0x104], eax
jmp 0x403c3d
mov eax, dword [ebp + 0x104]
test eax, eax
jne 0x403c56
lea ecx, [ebp + 0x104]
call fcn.00404a3e
mov eax, 0x80004005
jmp 0x403d25
push esi
push ebx
push eax
call fcn.00441390
add esp, 0xc
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x2c], 0
mov eax, ebx
jle 0x403cab
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp + 0x104]
mov edi, eax
movzx eax, byte [ebp + eax + 0x208]
push eax
shr edi, 1
call fcn.00404033
mov edx, dword [ebp - 0x14]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x403c6f
mov esi, dword [ebp - 0x28]
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
push esi
push dword [ebp + 0x104]
push 3
push ebx
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp + 0x108]
cmp dword [ebp + 0x104], eax
je 0x403d04
lea ecx, [ebp + 0x104]
call fcn.00404a3e
jmp 0x403d04
lea eax, [ebp + 0x208]
push eax
call fcn.00445520
pop ecx
inc eax
push eax
lea eax, [ebp + 0x208]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test ebx, ebx
je 0x403d11
push ebx
call fcn.00403efd
pop ecx
jmp 0x403d25
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
call fcn.00405766
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1208]
xor ecx, ebp
call fcn.0043f9b7
add ebp, 0x120c
leave
ret 0xc