Function at 0x4f3c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d311
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.00519090
mov eax, dword [0x5b7de4]
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 + 8]
mov dword [ebp - 0x1128], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1124], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1120], ecx
call fcn.004f4d20
test eax, eax
js 0x4f41c4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5c92d8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5c893c]
cmp eax, dword [ecx + 4]
jg 0x4f41e8
mov ebx, 0x4008
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
nop
push dword [esi*8 + 0x5c891c]
lea eax, [ebp - 0x1014]
push eax
call edi
test eax, eax
je 0x4f3d54
inc esi
cmp esi, 4
jb 0x4f3d30
mov eax, 0x80020009
jmp 0x4f41c4
movzx eax, word [esi*8 + 0x5c8920]
mov ecx, dword [ebp - 0x112c]
mov esi, eax
mov edi, eax
call fcn.004f70a0
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.004f4d20
test eax, eax
js 0x4f41c4
cmp esi, 0x13
ja 0x4f4057
je 0x4f3f48
cmp esi, 8
je 0x4f3f0c
cmp esi, 0x11
jne 0x4f41aa
lea ebx, [ebp - 0x1014]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4f3db0
sub ebx, ecx
mov dword [ebp - 0x1130], ebx
test bl, 1
jne 0x4f3e55
mov eax, ebx
mov dword [ebp - 0x1118], 0
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp ecx, 0x100
jbe 0x4f3e3a
push ecx
lea ecx, [ebp - 0x1118]
call fcn.004f4310
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x111c]
jmp 0x4f3e46
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
test eax, eax
jne 0x4f3e5f
lea ecx, [ebp - 0x1118]
call fcn.0041e380
mov eax, 0x80004005
jmp 0x4f41c4
push ecx
push 0
push eax
call fcn.00530cf0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4f3ec4
mov dl, byte [ebp + edi - 0x1014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1118]
movsx eax, dl
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x4f3e94.58
movzx eax, byte [eax + 0x4f427c]
jmp dword [eax*4 + 0x4f426c]
sub dl, 0x30
jmp 0x4f3eac
sub dl, 0x37
jmp 0x4f3eac
sub dl, 0x57
jmp 0x4f3eac
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x4f3e71
push dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1128]
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x4f419b
lea ecx, [ebp - 0x1118]
call fcn.0041e380
jmp 0x4f419b
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3f15
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1014]
push eax
mov eax, dword [ebp - 0x1128]
push 1
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x4f419b
mov dword [ebp - 0x111c], 0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3f62
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
call fcn.004f32f0
add esp, 0xc
test eax, eax
js 0x4f4042
mov esi, dword [ebp - 0x1120]
cmp esi, 0x400
jg 0x4f3fb7
push esi
call fcn.0042d960
add esp, 4
test al, al
je 0x4f3fb7
mov eax, esi
call fcn.00519740
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4f3fc3
push esi
lea ecx, [ebp - 0x111c]
call fcn.004f42c0
push 3
shr esi, 1
lea ecx, [ebp - 0x1014]
push esi
push ecx
push eax
call fcn.004f43d0
test eax, eax
je 0x4f4042
lea ecx, [ebp - 0x1130]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x4f4003
lea ecx, [ebp - 0x111c]
call fcn.0041e390
mov eax, esi
jmp 0x4f41c4
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x111c]
mov esi, eax
call fcn.0041e390
jmp 0x4f419b
lea ecx, [ebp - 0x111c]
call fcn.0041e390
mov eax, 0x8007000e
jmp 0x4f41c4
cmp di, bx
jne 0x4f41aa
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f4070
sub ecx, edx
mov dword [ebp - 0x1118], 0
add ecx, 2
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp ecx, 0x100
jbe 0x4f40c7
push ecx
lea ecx, [ebp - 0x1118]
call fcn.004f4310
mov edi, dword [ebp - 0x1118]
jmp 0x4f40d3
lea edi, [ebp - 0x1114]
mov dword [ebp - 0x1118], edi
test edi, edi
je 0x4f4181
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x4f412b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4f4109
cmp byte [eax], 0x30
jne 0x4f4109
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x4f4125
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4f4124
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x4f412b
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x4f40f0
mov word [edi], 0
mov edi, dword [ebp - 0x1118]
test edi, edi
jne 0x4f413f
lea esi, [edi + 0xd]
jmp 0x4f4186
xor esi, esi
mov edx, edi
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f4148
sub ecx, ebx
lea eax, [ecx + 1]
add edx, eax
add esi, eax
cmp eax, 1
jne 0x4f4143
mov eax, dword [ebp - 0x1128]
push esi
push edi
push 7
push 0
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x1118]
mov esi, eax
jmp 0x4f4186
mov esi, 0xe
lea eax, [ebp - 0x1114]
cmp edi, eax
je 0x4f419b
lea ecx, [ebp - 0x1118]
call fcn.0041e380
test esi, esi
je 0x4f41aa
push esi
call fcn.004f4430
add esp, 4
jmp 0x4f41c4
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x112c]
call fcn.004f4d20
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.005189ad
mov esp, ebp
pop ebp
ret 0xc
push 0x5c893c
call fcn.00519645
add esp, 4
cmp dword [0x5c893c], 0xffffffff
jne 0x4f3d21
mov eax, 8
mov dword [0x5c891c], 0x57d498
mov word [0x5c8920], ax
mov ebx, 0x4008
mov eax, 0x13
mov dword [0x5c8924], 0x57d49c
mov word [0x5c8930], ax
mov eax, 0x11
push 0x5c893c
mov word [0x5c8928], bx
mov dword [0x5c892c], 0x57d4a0
mov dword [0x5c8934], 0x57d4a4
mov word [0x5c8938], ax
call fcn.005195fb
add esp, 4
jmp 0x4f3d26