Function at 0x39ad70
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.003a0fd0
test eax, eax
je 0x39ad9b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], ecx
lea ecx, [ebp - 0x5c]
call fcn.003a3a10
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.0039a460
test eax, eax
jne 0x39add4
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x5c]
call fcn.003a3ce0
mov eax, dword [ebp - 0x318]
jmp 0x39b1d1
call fcn.0039efa0
lea ecx, [ebp - 0x270]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x42de98
call fcn.003a32b0
push eax
call fcn.003a1280
lea eax, [ebp - 0x2f4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x270]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x39b1b6
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 0x39b17d
mov dword [ebp - 0x304], 1
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x42de6c
call fcn.003a32b0
push eax
call fcn.003a1280
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 0x39b15a
mov dword [ebp - 0x304], 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x42de74
call fcn.003a32b0
push eax
call fcn.003a1280
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 0x39b15a
mov dword [ebp - 0x304], 4
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x42de84
call fcn.003a32b0
push eax
call fcn.003a1280
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 0x39b15a
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.003a49c0
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.003b8bd3
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x42de8c
call fcn.003a32b0
push eax
call fcn.003a1280
lea edx, [ebp - 0x270]
push edx
call fcn.003b84db
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 0x39b15a
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.003a32b0
push eax
call fcn.003a1280
lea edx, [ebp - 0x2f0]
push edx
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.003b8bd3
add esp, 0xc
push 0x43f064
push 0x105
lea ecx, [ebp - 0x270]
push ecx
call fcn.003b8bd3
add esp, 0xc
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x42de98
call fcn.003a32b0
push eax
call fcn.003a1280
lea ecx, [ebp - 0x2f0]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.003b8bd3
add esp, 0xc
push 0x43f064
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.003b8bd3
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.003b8bd3
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.003b84db
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 0x42de34
call fcn.003a3460
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x39b15a
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 0x39b144
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x39b15a
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.0039ad30
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.0039ac90
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.003a3ce0
mov eax, dword [ebp - 0x31c]
mov esp, ebp
pop ebp
ret 0xc