Function at 0x46a1b0
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.00470410
test eax, eax
je 0x46a1db
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], ecx
lea ecx, [ebp - 0x5c]
call fcn.00472dd0
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.004697c0
test eax, eax
jne 0x46a214
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x5c]
call fcn.004730a0
mov eax, dword [ebp - 0x318]
jmp 0x46a611
call fcn.0046e3e0
lea ecx, [ebp - 0x270]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x4fceb0
call fcn.00472670
push eax
call fcn.00470640
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 0x46a5f6
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 0x46a5bd
mov dword [ebp - 0x304], 1
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x4fce84
call fcn.00472670
push eax
call fcn.00470640
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 0x46a59a
mov dword [ebp - 0x304], 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x4fce8c
call fcn.00472670
push eax
call fcn.00470640
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 0x46a59a
mov dword [ebp - 0x304], 4
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x4fce9c
call fcn.00472670
push eax
call fcn.00470640
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 0x46a59a
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.00473d80
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e43
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x4fcea4
call fcn.00472670
push eax
call fcn.00470640
lea edx, [ebp - 0x270]
push edx
call fcn.0048774b
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 0x46a59a
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.00472670
push eax
call fcn.00470640
lea edx, [ebp - 0x2f0]
push edx
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00487e43
add esp, 0xc
push 0x50de9c
push 0x105
lea ecx, [ebp - 0x270]
push ecx
call fcn.00487e43
add esp, 0xc
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x4fceb0
call fcn.00472670
push eax
call fcn.00470640
lea ecx, [ebp - 0x2f0]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e43
add esp, 0xc
push 0x50de9c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00487e43
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00487e43
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.0048774b
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 0x4fce4c
call fcn.00472820
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x46a59a
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 0x46a584
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46a59a
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.0046a170
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.0046a0d0
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.004730a0
mov eax, dword [ebp - 0x31c]
mov esp, ebp
pop ebp
ret 0xc