Function at 0x403070
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccd1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032d0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4032c2
xor eax, eax
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403110
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00404900
push ecx
lea edx, [ebp - 0x264]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004060e0
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x403192
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403188
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40330e
push edx
push ecx
call fcn.00412b92
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
push ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x250], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x264], ax
call fcn.00405f70
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.gta_sa
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x403229
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x43c384
call fcn.00406130
add esp, 4
mov ecx, eax
call fcn.00403d50
push eax
call fcn.004063f0
add esp, 4
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x403269
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40325f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403313
push edx
push ecx
call fcn.00412b92
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x4032c2
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4032b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403318
push edx
push ecx
call fcn.00412b92
add esp, 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4032f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x43c3c8
call fcn.00406130
add esp, 4
mov ecx, eax
call fcn.00403d50
push eax
call fcn.004063f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004127b4
mov esp, ebp
pop ebp
ret
call fcn.00418ac6
call fcn.00418ac6
call fcn.00418ac6
int3