Function at 0x4127f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f47d5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.004f3f20
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x112c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], esi
mov dword [ebp - 0x1120], ebx
call fcn.00413095
test eax, eax
js 0x412c3e
lea edx, [ebp - 0x1120]
lea ecx, [ebp - 0x1014]
call fcn.00412414
test eax, eax
jne 0x412891
mov eax, 0x80020009
jmp 0x412c3e
mov ecx, dword [ebp - 0x112c]
call fcn.00413764
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.00413095
test eax, eax
js 0x412c3e
movzx eax, word [ebp - 0x1120]
sub eax, 8
je 0x412c05
sub eax, 9
je 0x412ae0
dec eax
sub eax, 1
je 0x4129c4
sub eax, 0x3ff5
jne 0x412c24
lea eax, [ebp - 0x1014]
push eax
call fcn.004c8d20
pop ecx
add eax, 2
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1118]
push eax
mov byte [ebp - 4], 1
call fcn.0041250c
jmp 0x412923
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x4129a3
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x41297d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x41295c
cmp byte [eax], 0x30
jne 0x41295c
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x412977
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x412976
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x41297d
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x41293c
mov ecx, dword [ebp - 0x1128]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1124]
call fcn.00412537
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x4129a6
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x412c17
lea ecx, [ebp - 0x1118]
call fcn.004124ad
jmp 0x412c17
mov esi, ebx
mov dword [ebp - 0x111c], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call fcn.004c8d20
inc eax
lea ecx, [ebp - 0x1120]
mov edx, eax
mov dword [ebp - 0x1120], eax
call fcn.004125d1
add esp, 4
test eax, eax
js 0x412ac3
mov edi, dword [ebp - 0x1120]
cmp edi, 0x400
jg 0x412a25
mov ecx, edi
call fcn.00412631
test al, al
je 0x412a25
mov eax, edi
call fcn.004f3f50
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x412a37
push edi
lea ecx, [ebp - 0x111c]
call fcn.004126c3
mov esi, dword [ebp - 0x111c]
push 3
shr edi, 1
lea edx, [ebp - 0x1014]
push edi
mov ecx, eax
call fcn.004125fe
test eax, eax
je 0x412ac3
lea ecx, [ebp - 0x1130]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
jns 0x412a7d
or dword [ebp - 4], 0xffffffff
jmp 0x412a72
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x412a69
mov eax, edi
jmp 0x412c3e
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov edi, eax
jmp 0x412aba
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x412ab1
jmp 0x412c17
or dword [ebp - 4], 0xffffffff
jmp 0x412ad2
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x412ac9
mov eax, 0x8007000e
jmp 0x412c3e
lea eax, [ebp - 0x1014]
push eax
call fcn.004c8d20
mov dword [ebp - 0x1120], eax
pop ecx
test al, 1
je 0x412b01
mov eax, 0x80004005
jmp 0x412c3e
cdq
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1130], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.004127a1
jmp 0x412b47
cmp dword [ebp - 0x1118], 0
jne 0x412b5d
lea ecx, [ebp - 0x1118]
call fcn.00412716
jmp 0x412af7
push esi
push ebx
push dword [ebp - 0x1118]
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0x111c], ebx
cmp dword [ebp - 0x1120], 0
mov edx, ebx
jle 0x412bca
mov ebx, dword [ebp - 0x1120]
mov edi, edx
test edi, edi
jns 0x412b8d
add edi, 1
sar edi, 1
mov cl, byte [ebp + edx - 0x1014]
mov esi, dword [ebp - 0x1118]
call fcn.004127cc
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x111c]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x111c], edx
cmp edx, ebx
jl 0x412b84
mov esi, dword [ebp - 0x1130]
xor ebx, ebx
mov eax, dword [ebp - 0x1128]
push esi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x412c17
lea ecx, [ebp - 0x1118]
call fcn.00412716
jmp 0x412c17
push ecx
lea eax, [ebp - 0x1014]
mov ecx, edi
push eax
push esi
call fcn.00412474
mov edi, eax
test edi, edi
je 0x412c24
mov ecx, edi
call fcn.00413065
jmp 0x412c3e
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x112c]
call fcn.00413095
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d307
leave
ret 0xc