Function at 0x4f0010
Capabilities:
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a4bc
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x468], eax
lea esi, [eax + 0x160]
mov eax, dword [esi]
cmp byte [eax], 0
je 0x4f007e
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
jne 0x4f007e
mov al, 1
jmp 0x4f0080
xor al, al
test al, al
je 0x4f06b0
push str.unzip.ae
lea ecx, [ebp - 0x484]
call fcn.0041d340
add esp, 4
push 0
push 0x1a
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
or ebx, 0xffffffff
test eax, eax
je 0x4f010c
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x460]
call fcn.0041d400
add esp, 4
lea edx, [ebp - 0x460]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x470]
call fcn.00524830
mov ecx, dword [ebp - 0x460]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0116
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0116
push ecx
call fcn.004a8172
add esp, 4
jmp 0x4f0116
mov dword [ebp - 0x470], 0x7a135c
push ecx
mov eax, esp
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x470]
mov dword [eax], 0x62a110
lea eax, [ebp - 0x474]
push eax
call fcn.00527e80
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x484]
mov dword [ecx], edi
lea ecx, [ebp - 0x460]
push ecx
mov ecx, eax
call fcn.00527e80
mov ecx, dword [ebp - 0x470]
mov edx, dword [eax]
mov dword [ebp - 0x470], edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x460]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0186
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0186
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f01ae
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f01ae
push ecx
call fcn.004a8172
add esp, 4
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x470]
call fcn.00527c40
mov ecx, dword [ebp - 0x474]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f01e4
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f01e4
push ecx
call fcn.004a8172
add esp, 4
push esi
lea ecx, [ebp - 0x4a4]
call fcn.005288d0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0xc
mov byte [ebp - 4], 0xa
call fcn.004a7e6f
mov edx, eax
add esp, 4
mov dword [ebp - 0x47c], edx
mov dword [edx], vtable.juce::FileInputSource.0
mov ecx, dword [esi]
mov dword [edx + 4], ecx
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0264
mov eax, 1
lock xadd dword [ecx], eax
mov byte [edx + 8], 0
mov dword [ebp - 0x420], edx
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00503170
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x47c]
mov eax, dword [ebp - 0x448]
push str.setup.exe
mov dword [ebp - 0x460], eax
call fcn.0041d340
add esp, 4
mov byte [ebp - 4], 0xd
xor esi, esi
mov eax, dword [ebp - 0x460]
mov byte [ebp - 0x451], 1
test eax, eax
jle 0x4f03d3
nop dword [eax + eax]
mov dword [ebp - 0x474], eax
lea eax, [esi + 1]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x468]
mov byte [ebp - 0x458], 1
mov byte [ebp - 0x45c], 0
mov ecx, dword [eax + 0x15c]
test ecx, ecx
je 0x4f06cc
mov eax, dword [ecx]
lea edx, [ebp - 0x458]
push edx
lea edx, [ebp - 0x474]
push edx
lea edx, [ebp - 0x480]
push edx
lea edx, [ebp - 0x45c]
push edx
call dword [eax + 8]
mov eax, dword [0x800fec]
push 1
test eax, eax
jne 0x4f032b
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4f0332
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, dword [ebp - 0x448]
jae 0x4f038e
mov eax, dword [ebp - 0x450]
cmp dword [eax + esi*4], 0
je 0x4f038e
push ecx
push 1
lea eax, [ebp - 0x470]
push eax
push esi
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x450]
call fcn.00502a80
mov eax, dword [ebp - 0x478]
cmp byte [eax], 0
lea ecx, [eax - 8]
jne 0x4f03ab
cmp ecx, 0x7a1354
je 0x4f0395
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0395
push ecx
call fcn.004a8172
add esp, 4
jmp 0x4f0395
mov byte [ebp - 0x451], 0
mov esi, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x460]
cmp esi, eax
jl 0x4f02c0
jmp 0x4f03d3
mov byte [ebp - 0x451], 0
cmp ecx, 0x7a1354
je 0x4f03cd
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f03cd
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x460]
mov cl, byte [ebp - 0x451]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x468]
mov byte [ebp - 0x45c], cl
mov byte [ebp - 0x458], 1
mov ecx, dword [eax + 0x15c]
test ecx, ecx
je 0x4f06cc
mov eax, dword [ecx]
lea edx, [ebp - 0x45c]
push edx
lea edx, [ebp - 0x46c]
push edx
lea edx, [ebp - 0x478]
push edx
lea edx, [ebp - 0x458]
push edx
call dword [eax + 8]
push 0
push 0x1a
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4f048e
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x468]
call fcn.0041d400
add esp, 4
lea edx, [ebp - 0x468]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x464]
call fcn.00524830
mov ecx, dword [ebp - 0x468]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0498
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0498
push ecx
call fcn.004a8172
add esp, 4
jmp 0x4f0498
mov dword [ebp - 0x464], 0x7a135c
push ecx
mov eax, esp
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x464]
mov dword [eax], str.CoolInstaller
lea eax, [ebp - 0x480]
push eax
call fcn.00527e80
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x12
mov dword [ecx], edi
lea ecx, [ebp - 0x478]
push ecx
mov ecx, eax
call fcn.00527e80
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x47c]
mov dword [ecx], esi
lea ecx, [ebp - 0x46c]
push ecx
mov ecx, eax
call fcn.00527e80
mov ecx, dword [ebp - 0x464]
mov edx, dword [eax]
mov dword [ebp - 0x464], edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f051f
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f051f
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0543
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0543
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x480]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f056b
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f056b
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x464]
cmp byte [eax], 0
je 0x4f059f
lea edx, [ebp - 0x464]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x46c]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0x11
test al, 0x10
jne 0x4f059f
mov al, 1
jmp 0x4f05a1
xor al, al
test al, al
je 0x4f0618
push 0x62988e
lea ecx, [ebp - 0x468]
call fcn.0041d340
add esp, 4
lea edx, [ebp - 0x468]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x46c]
call fcn.00418480
lea edx, [ebp - 0x464]
lea ecx, [ebp - 0x478]
mov ebx, dword [eax]
call fcn.00418480
push 0xa
push 0
push ebx
push dword [eax]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x468]
or ebx, 0xffffffff
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0618
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0618
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x464]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f063c
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f063c
push ecx
call fcn.004a8172
add esp, 4
add esi, 0xfffffff8
cmp esi, 0x7a1354
je 0x4f065a
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x4f065a
push esi
call fcn.004a8172
add esp, 4
lea ecx, [ebp - 0x450]
call fcn.00528ac0
lea ecx, [ebp - 0x4a4]
call fcn.00528870
mov ecx, dword [ebp - 0x470]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f0694
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f0694
push ecx
call fcn.004a8172
add esp, 4
add edi, 0xfffffff8
cmp edi, 0x7a1354
je 0x4f06b0
lock xadd dword [edi], ebx
test ebx, ebx
jne 0x4f06b0
push edi
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret
call fcn.004a5245
int3