Function at 0x4fe104
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x344], edx
mov dword [ebp - 0x340], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe535
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00465af0
test eax, eax
je 0x4fe4fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x458670]
call fcn.00458770
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4fe4f3
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00458810
xor ecx, ecx
mov edx, 0x4fe54c
mov eax, dword [ebp - 8]
call fcn.00458954
test al, al
je 0x4fe4dd
lea eax, [ebp - 0x120]
mov ecx, 0x20
mov edx, 0x104
call fcn.00402d20
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x104
call fcn.00402d20
push 0x104
lea ecx, [ebp - 0x120]
mov edx, 0x4fe5a4
mov eax, dword [ebp - 8]
call fcn.004590e4
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00403f0c
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004091ac
cmp dword [ebp - 0x228], 0
je 0x4fe24b
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x224]
call fcn.00409b88
mov edx, 0x4fe5b4
lea eax, [ebp - 0x224]
call fcn.00409b88
mov bx, 1
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x121], 0
jne 0x4fe34b
movzx eax, bx
cmp byte [ebp + eax - 0x120], 0
je 0x4fe356
jmp 0x4fe275
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x121], 0
jne 0x4fe289
cmp bx, 0x104
jb 0x4fe274
cmp bx, 0x104
jae 0x4fe34b
movzx eax, bx
lea esi, [ebp + eax - 0x121]
lea eax, [ebp - 0x234]
mov edx, esi
call fcn.00403fdc
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004091ac
mov eax, dword [ebp - 0x230]
call fcn.00404268
mov esi, eax
mov eax, esi
call fcn.00409a80
add bx, ax
dec ebx
test esi, esi
je 0x4fe34b
lea eax, [ebp - 0x238]
mov edx, esi
call fcn.00403fdc
mov eax, dword [ebp - 0x238]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00465af0
mov edx, dword [eax + 0x24]
pop eax
call fcn.004041b4
je 0x4fe34b
lea eax, [ebp - 0x33c]
mov edx, esi
call fcn.00402eb4
lea edx, [ebp - 0x33c]
lea eax, [ebp - 0x23c]
call fcn.00404048
lea eax, [ebp - 0x23c]
mov edx, 0x4fe5c0
call fcn.004040ac
mov eax, dword [ebp - 0x23c]
call fcn.00404268
mov edx, eax
lea eax, [ebp - 0x224]
call fcn.00409b88
cmp bx, 0x104
jb 0x4fe24f
mov edx, 0x4fe5b4
lea eax, [ebp - 0x224]
call fcn.00409b88
lea eax, [ebp - 0x224]
call fcn.00409a80
mov word [ebp - 0xa], ax
mov si, word [ebp - 0xa]
test si, si
jbe 0x4fe392
lea eax, [ebp - 0x224]
cmp byte [eax], 0x3a
jne 0x4fe38c
mov byte [eax], 0
inc eax
dec si
jne 0x4fe384
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
push 0x4fe5c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4fe4dd
push 0x124
push 0x4fe614
push 0x4fe63c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00465af0
push dword [eax + 0x24]
push 0x4fe650
lea eax, [ebp - 0x340]
mov edx, 3
call fcn.00404164
mov eax, dword [ebp - 0x340]
call fcn.00404268
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004388a8
push eax
call sub.user32.dll_MessageBoxA_1
cmp eax, 6
jne 0x4fe4dd
mov eax, dword [ebp - 0x1c]
call fcn.00465af0
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x14]
call fcn.00403ebc
mov eax, dword [ebp - 0x1c]
call fcn.00465af0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x18]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
movzx eax, word [ebp - 0xa]
push eax
lea eax, [ebp - 0x224]
push eax
push 7
push 0
push 0x4fe654
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.004faee0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x20c]
call fcn.0046261c
mov esi, eax
dec esi
test si, si
jb 0x4fe4b6
inc esi
xor ebx, ebx
movzx edx, bx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x20c]
call fcn.0046264c
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004041b4
jne 0x4fe4b0
lea eax, [ebp - 0x18]
call fcn.00403e24
jmp 0x4fe4b6
inc ebx
dec si
jne 0x4fe482
cmp dword [ebp - 0x18], 0
je 0x4fe4dd
lea eax, [ebp - 0x344]
mov ecx, 0x4fe66c
mov edx, dword [ebp - 0x18]
call fcn.004040f0
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp - 0x18]
call fcn.004096b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe4fa
mov eax, dword [ebp - 8]
call fcn.004030bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe53c
lea eax, [ebp - 0x344]
mov edx, 2
call fcn.00403e48
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00403e48
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403e48
ret