Function at 0x4a7f60
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x4a7f68
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404858
xor eax, eax
push ebp
push 0x4a86d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov dl, 1
mov eax, dword [0x47a560]
call fcn.0047a6a4
mov dword [ebp - 0x18], eax
cmp byte [ebp - 9], 1
jne 0x4a8635
mov byte [ebp - 9], 0
mov edx, dword [ebp - 4]
mov eax, 0x4a86ec
call fcn.004049ac
test eax, eax
jle 0x4a8047
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a86ec
call fcn.004049ac
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
mov ecx, 6
mov edx, dword [ebp - 0x10]
call fcn.00404908
mov eax, dword [ebp - 4]
call fcn.00404668
cmp eax, dword [ebp - 0x10]
jge 0x4a8023
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 4]
call fcn.00404c60
lea eax, [ebp - 0x11c]
mov edx, dword [0x4ae5c0]
mov edx, dword [edx]
call fcn.00404cf8
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 4]
call fcn.00404630
jmp 0x4a8047
lea eax, [ebp - 0x120]
mov edx, dword [0x4ae5c0]
mov edx, dword [edx]
call fcn.00404630
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00404950
mov edx, dword [ebp - 4]
mov eax, 0x4a86fc
call fcn.004049ac
test eax, eax
jle 0x4a81aa
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a86fc
call fcn.004049ac
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
mov ecx, 0xd
mov edx, dword [ebp - 0x10]
call fcn.00404908
mov eax, dword [ebp - 4]
call fcn.00404668
cmp eax, dword [ebp - 0x10]
jge 0x4a8120
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 4]
call fcn.00404c60
push dword [ebp - 0x128]
mov eax, dword [0x4ae5c0]
push dword [eax]
push 0x4a8710
mov eax, 0x3e8
call fcn.00402e78
lea edx, [ebp - 0x130]
call fcn.004093c0
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
call fcn.00404c60
push dword [ebp - 0x12c]
mov eax, 0x1c
call fcn.00402e78
mov edx, eax
add edx, 0x61
lea eax, [ebp - 0x134]
call fcn.00404ba0
push dword [ebp - 0x134]
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.00404dbc
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 4]
call fcn.00404630
jmp 0x4a81aa
mov eax, dword [0x4ae5c0]
push dword [eax]
push 0x4a8710
mov eax, 0x3e8
call fcn.00402e78
lea edx, [ebp - 0x144]
call fcn.004093c0
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
call fcn.00404c60
push dword [ebp - 0x140]
mov eax, 0x1c
call fcn.00402e78
mov edx, eax
add edx, 0x61
lea eax, [ebp - 0x148]
call fcn.00404ba0
push dword [ebp - 0x148]
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.00404dbc
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
call fcn.00404630
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00404950
mov edx, dword [ebp - 4]
mov eax, 0x4a8724
call fcn.004049ac
test eax, eax
jle 0x4a8226
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a8724
call fcn.004049ac
mov dword [ebp - 0x10], eax
push 0xff
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x118]
call fcn.0040a3a8
lea eax, [ebp - 4]
mov ecx, 5
mov edx, dword [ebp - 0x10]
call fcn.00404908
mov eax, dword [ebp - 4]
call fcn.00404668
cmp eax, dword [ebp - 0x10]
jge 0x4a8218
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404670
jmp 0x4a8226
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00404950
mov edx, dword [ebp - 4]
mov eax, 0x4a8734
call fcn.004049ac
test eax, eax
jle 0x4a82a2
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a8734
call fcn.004049ac
mov dword [ebp - 0x10], eax
push 0xff
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x118]
call fcn.0040a3a8
lea eax, [ebp - 4]
mov ecx, 5
mov edx, dword [ebp - 0x10]
call fcn.00404908
mov eax, dword [ebp - 4]
call fcn.00404668
cmp eax, dword [ebp - 0x10]
jge 0x4a8294
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404670
jmp 0x4a82a2
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00404950
mov edx, dword [ebp - 4]
mov eax, 0x4a8748
call fcn.004049ac
test eax, eax
jle 0x4a8357
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a8748
call fcn.004049ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a8318
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0047a780
push 0x20019
xor ecx, ecx
mov edx, 0x4a8758
mov eax, dword [ebp - 0x18]
call fcn.0047a834
lea ecx, [ebp - 0x14]
mov edx, 0x4a878c
mov eax, dword [ebp - 0x18]
call fcn.0047aa08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a831f
ret
mov edx, dword [ebp - 4]
mov eax, 0x4a87a4
call fcn.004049ac
test eax, eax
jle 0x4a840c
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a87a4
call fcn.004049ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a83cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x18]
call fcn.0047a780
push 0x20019
xor ecx, ecx
mov edx, 0x4a8758
mov eax, dword [ebp - 0x18]
call fcn.0047a834
lea ecx, [ebp - 0x14]
mov edx, 0x4a878c
mov eax, dword [ebp - 0x18]
call fcn.0047aa08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a83d4
ret
mov edx, dword [ebp - 4]
mov eax, 0x4a87b4
call fcn.004049ac
test eax, eax
jle 0x4a84c1
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a87b4
call fcn.004049ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a8482
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x18]
call fcn.0047a780
push 0x20019
xor ecx, ecx
mov edx, 0x4a87c4
mov eax, dword [ebp - 0x18]
call fcn.0047a834
lea ecx, [ebp - 0x14]
mov edx, 0x4a8810
mov eax, dword [ebp - 0x18]
call fcn.0047aa08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8489
ret
mov edx, dword [ebp - 4]
mov eax, 0x4a8824
call fcn.004049ac
test eax, eax
jle 0x4a8576
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a8824
call fcn.004049ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a8537
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x18]
call fcn.0047a780
push 0x20019
xor ecx, ecx
mov edx, 0x4a87c4
mov eax, dword [ebp - 0x18]
call fcn.0047a834
lea ecx, [ebp - 0x14]
mov edx, 0x4a8838
mov eax, dword [ebp - 0x18]
call fcn.0047aa08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a853e
ret
mov edx, dword [ebp - 4]
mov eax, 0x4a8848
call fcn.004049ac
test eax, eax
jle 0x4a862b
mov byte [ebp - 9], 1
mov edx, dword [ebp - 4]
mov eax, 0x4a8848
call fcn.004049ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a85ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x18]
call fcn.0047a780
push 0x20019
xor ecx, ecx
mov edx, 0x4a87c4
mov eax, dword [ebp - 0x18]
call fcn.0047a834
lea ecx, [ebp - 0x14]
mov edx, 0x4a8858
mov eax, dword [ebp - 0x18]
call fcn.0047aa08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a85f3
ret
cmp byte [ebp - 9], 1
je 0x4a7fa8
mov eax, dword [ebp - 0x18]
call fcn.00403548
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004043ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a86dd
lea eax, [ebp - 0x148]
call fcn.00404a88
lea eax, [ebp - 0x144]
call fcn.00404398
lea eax, [ebp - 0x140]
mov edx, 2
call fcn.00404aa0
lea eax, [ebp - 0x138]
call fcn.00404398
lea eax, [ebp - 0x134]
call fcn.00404a88
lea eax, [ebp - 0x130]
call fcn.00404398
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404aa0
lea eax, [ebp - 0x120]
call fcn.00404398
lea eax, [ebp - 0x11c]
call fcn.00404a88
lea eax, [ebp - 0x14]
call fcn.00404398
lea eax, [ebp - 4]
call fcn.00404398
ret