Function at 0x4fe0e8
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 0x4fe519
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00465afc
test eax, eax
je 0x4fe4de
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 0x4fe4d7
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, 0x4fe530
mov eax, dword [ebp - 8]
call fcn.00458954
test al, al
je 0x4fe4c1
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, 0x4fe588
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 0x4fe22f
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x224]
call fcn.00409b88
mov edx, 0x4fe598
lea eax, [ebp - 0x224]
call fcn.00409b88
mov bx, 1
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x121], 0
jne 0x4fe32f
movzx eax, bx
cmp byte [ebp + eax - 0x120], 0
je 0x4fe33a
jmp 0x4fe259
inc ebx
movzx eax, bx
cmp byte [ebp + eax - 0x121], 0
jne 0x4fe26d
cmp bx, 0x104
jb 0x4fe258
cmp bx, 0x104
jae 0x4fe32f
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 0x4fe32f
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.00465afc
mov edx, dword [eax + 0x24]
pop eax
call fcn.004041b4
je 0x4fe32f
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, 0x4fe5a4
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 0x4fe233
mov edx, 0x4fe598
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 0x4fe376
lea eax, [ebp - 0x224]
cmp byte [eax], 0x3a
jne 0x4fe370
mov byte [eax], 0
inc eax
dec si
jne 0x4fe368
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
push 0x4fe5a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4fe4c1
push 0x124
push 0x4fe5f8
push 0x4fe620
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00465afc
push dword [eax + 0x24]
push 0x4fe634
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 0x4fe4c1
mov eax, dword [ebp - 0x1c]
call fcn.00465afc
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x14]
call fcn.00403ebc
mov eax, dword [ebp - 0x1c]
call fcn.00465afc
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 0x4fe638
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.004faec4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x20c]
call fcn.00462628
mov esi, eax
dec esi
test si, si
jb 0x4fe49a
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.00462658
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004041b4
jne 0x4fe494
lea eax, [ebp - 0x18]
call fcn.00403e24
jmp 0x4fe49a
inc ebx
dec si
jne 0x4fe466
cmp dword [ebp - 0x18], 0
je 0x4fe4c1
lea eax, [ebp - 0x344]
mov ecx, 0x4fe650
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 0x4fe4de
mov eax, dword [ebp - 8]
call fcn.004030bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe520
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