Function at 0x46a0a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov byte [ebp - 0x2f5], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2fc], eax
call fcn.00470300
test eax, eax
je 0x46a0cb
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], ecx
lea ecx, [ebp - 0x5c]
call fcn.00472d40
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.00469790
test eax, eax
jne 0x46a104
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x5c]
call fcn.00473010
mov eax, dword [ebp - 0x318]
jmp 0x46a501
call fcn.0046e2d0
lea ecx, [ebp - 0x270]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x4fce88
call fcn.004725e0
push eax
call fcn.004705b0
lea eax, [ebp - 0x2f4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x270]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a4e6
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2f4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46a4ad
mov dword [ebp - 0x304], 1
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x4fce5c
call fcn.004725e0
push eax
call fcn.004705b0
push 4
lea ecx, [ebp - 0x304]
push ecx
push 4
push 0
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46a48a
mov dword [ebp - 0x304], 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x4fce64
call fcn.004725e0
push eax
call fcn.004705b0
push 4
lea eax, [ebp - 0x304]
push eax
push 4
push 0
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46a48a
mov dword [ebp - 0x304], 4
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x4fce74
call fcn.004725e0
push eax
call fcn.004705b0
push 4
lea edx, [ebp - 0x304]
push edx
push 4
push 0
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46a48a
mov edx, 0x5c
mov word [ebp - 0x270], dx
mov eax, 0x3f
mov word [ebp - 0x26e], ax
mov ecx, 0x3f
mov word [ebp - 0x26c], cx
mov edx, 0x5c
mov word [ebp - 0x26a], dx
xor eax, eax
mov word [ebp - 0x268], ax
lea ecx, [ebp - 0x5c]
call fcn.00473cf0
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e23
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x4fce7c
call fcn.004725e0
push eax
call fcn.004705b0
lea edx, [ebp - 0x270]
push edx
call fcn.0048772b
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x270]
push ecx
push 1
push 0
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46a48a
mov ecx, 0x5c
mov word [ebp - 0x270], cx
xor edx, edx
mov word [ebp - 0x26e], dx
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push str.02____t846__0U
call fcn.004725e0
push eax
call fcn.004705b0
lea edx, [ebp - 0x2f0]
push edx
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00487e23
add esp, 0xc
push 0x50de74
push 0x105
lea ecx, [ebp - 0x270]
push ecx
call fcn.00487e23
add esp, 0xc
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x4fce88
call fcn.004725e0
push eax
call fcn.004705b0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e23
add esp, 0xc
push 0x50de74
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00487e23
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e23
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.0048772b
add esp, 4
movzx edx, ax
shl edx, 1
mov word [ebp - 0x30c], dx
movzx eax, word [ebp - 0x30c]
add eax, 2
mov word [ebp - 0x30a], ax
push 0
push 0x4fce24
call fcn.00472790
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x46a48a
lea ecx, [ebp - 0x30c]
push ecx
call dword [ebp - 0x310]
mov dword [ebp - 0x314], eax
xor edx, edx
cmp dword [ebp - 0x314], 0
setge dl
mov byte [ebp - 0x2f5], dl
movzx eax, byte [ebp - 0x2f5]
test eax, eax
je 0x46a474
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46a48a
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.0046a060
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.00469fc0
add esp, 8
mov eax, dword [ebp - 0x2f4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx edx, byte [ebp - 0x2f5]
mov dword [ebp - 0x31c], edx
lea ecx, [ebp - 0x5c]
call fcn.00473010
mov eax, dword [ebp - 0x31c]
mov esp, ebp
pop ebp
ret 0xc