Function at 0x421860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fc7d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push esi
lea edx, [ebp - 0x2b8]
call fcn.004214e0
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.0042f2c0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push 0x491780
push edx
call fcn.0042f152
add esp, 0x1c
mov dword [ebp - 0x26c], 0xf
mov dword [ebp - 0x270], ebx
mov byte [ebp - 0x280], bl
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x248], ax
mov eax, esi
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421910
sub eax, edx
mov ecx, esi
sar eax, 1
lea esi, [ebp - 0x248]
call fcn.00401f96
lea ecx, [ebp - 0x22c]
push ecx
mov byte [ebp - 4], 2
call fcn.0040d9ec
add esp, 4
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x42194f
mov eax, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
lea ecx, [ebp - 0x280]
call fcn.0040f7ef
add esp, 8
cmp dword [ebp - 0x218], edi
jb 0x42197c
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0042cfb0
add esp, 4
cmp dword [ebp - 0x234], 8
mov esi, 0xf
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
jb 0x4219ab
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.0042cfb0
add esp, 4
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], ebx
mov byte [ebp - 0x264], bl
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x2bc], edx
cmp dword [ebp - 0x26c], edi
jae 0x4219e1
lea eax, [ebp - 0x280]
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x2bc]
push edx
call fcn.0040f8f8
mov edx, dword [ebp - 0x2b8]
add esp, 8
cmp dword [ebp - 0x2a4], edi
jae 0x421a0b
lea edx, [ebp - 0x2b8]
mov eax, edx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x248], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421a22
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x248]
call fcn.00405e79
mov byte [ebp - 4], 5
mov eax, dword [0x4ac594]
cmp dword [0x4ac5a8], edi
jae 0x421a4e
mov eax, 0x4ac594
push eax
mov ecx, str.yh87Yx6EotW2RHhQlrSlh3ep1
lea ebx, [ebp - 0x29c]
call fcn.0040fa9d
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], edi
jb 0x421a6f
mov edx, dword [eax]
jmp 0x421a71
mov edx, eax
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421a90
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405e79
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x218], edi
jae 0x421ac6
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x2c0]
push ecx
lea edx, [ebp - 0x2bc]
push edx
push ebx
push 0x20006
push ebx
push 0x4915c4
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x264]
cmp dword [ebp - 0x250], edi
jae 0x421b01
lea ecx, [ebp - 0x264]
mov eax, dword [ebp - 0x248]
cmp dword [ebp - 0x234], edi
jae 0x421b15
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 0x254]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x218], edi
jb 0x421b45
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0042cfb0
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
cmp dword [ebp - 0x288], edi
jb 0x421b73
mov edx, dword [ebp - 0x29c]
push edx
call fcn.0042cfb0
add esp, 4
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x28c], ebx
mov byte [ebp - 0x29c], bl
cmp dword [ebp - 0x234], edi
jb 0x421b9c
mov eax, dword [ebp - 0x248]
push eax
call fcn.0042cfb0
add esp, 4
cmp dword [ebp - 0x250], edi
jb 0x421bb3
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.0042cfb0
add esp, 4
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], ebx
mov byte [ebp - 0x264], bl
cmp dword [ebp - 0x26c], edi
jb 0x421bdc
mov edx, dword [ebp - 0x280]
push edx
call fcn.0042cfb0
add esp, 4
cmp dword [ebp - 0x2a4], edi
jb 0x421bf3
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.0042cfb0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cfbb
mov esp, ebp
pop ebp
ret