Function at 0x40f9c0
Capabilities:
Check mutex on windows
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452db3
mov eax, dword fs:[0]
push eax
sub esp, 0x9e4
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0x9dc], eax
push ebx
push esi
mov eax, dword [0x469090]
xor eax, esp
push eax
lea eax, [esp + 0x9f0]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
mov ecx, dword [edi + 0x17f4]
mov edx, str.tail
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call fcn.00412ce0
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x40fee9
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
inc eax
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
call fcn.0043723a
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push ebx
push esi
call fcn.0043c0c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, esi
call fcn.00407de0
push esi
mov dword [esp + 0x20], eax
call fcn.00437245
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
push esi
call fcn.00408b40
push esi
call fcn.00437245
mov esi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [edi + 0x32c]
push ecx
mov edx, esi
call fcn.00418a40
mov ecx, dword [edi + 0x9938]
push str.Reading_tail...
push str.INFO
call fcn.0040c980
mov edx, dword [0x46a4f8]
mov eax, dword [edx + 0xc]
mov ecx, 0x46a4f8
call eax
mov edx, dword [0x46a4f8]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x46a4f8
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
push 0x46dcf0
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xa00], ebx
call fcn.00430fc0
push str.installer
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00431510
mov byte [esp + 0x9f8], 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
sub ecx, eax
test ecx, 0xfffffffc
je 0x40feae
mov eax, dword [eax]
push 0x45a010
mov dword [esp + 0x1c], eax
call fcn.00431480
cmp eax, ebx
je 0x40fbaa
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
jmp 0x40fbae
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
push eax
lea esi, [edi + 0x2ac]
push 0x40
push esi
call fcn.0043782b
add esp, 0xc
push esi
push str.pid_from_tail_s
lea ecx, [esp + 0x154]
push 0x40
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ecx, dword [edi + 0x9938]
add esp, 0x10
lea edx, [esp + 0x14c]
push edx
push str.INFO
call fcn.0040c980
lea eax, [edi + 0x1878]
mov ebx, str._pid
call fcn.00407030
test al, al
je 0x40fc5a
lea eax, [edi + 0x1878]
call fcn.004070d0
mov ebx, eax
test ebx, ebx
je 0x40fc5a
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x5e4]
push str.Replace_PID_from_commandline_old_s__new_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [edi + 0x9938]
add esp, 0x10
lea edx, [esp + 0x5dc]
push edx
push str.INFO
call fcn.0040c980
push ebx
push 0x40
push esi
call fcn.0043782b
add esp, 0xc
mov esi, dword [esp + 0x18]
push str.statUrl
mov eax, esi
call fcn.00431480
test eax, eax
je 0x40fc73
mov eax, dword [eax + 4]
jmp 0x40fc75
xor eax, eax
test eax, eax
je 0x40fc91
push eax
lea eax, [esp + 0x1d0]
push 0x104
push eax
call fcn.0043782b
add esp, 0xc
jmp 0x40fc9b
xor ecx, ecx
mov word [esp + 0x1cc], cx
lea edx, [esp + 0x1cc]
push edx
push str._s_installer.html
lea eax, [esp + 0x7e4]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [esp + 0x7ec]
push ecx
lea edx, [edi + 0x24]
push 0x104
push edx
call fcn.0043782b
add esp, 0x1c
push str.checkOld
mov eax, esi
call fcn.00431480
test eax, eax
je 0x40fce9
mov eax, dword [eax + 4]
jmp 0x40fceb
xor eax, eax
test eax, eax
je 0x40fd07
push eax
lea eax, [esp + 0x3d8]
push 0x104
push eax
call fcn.0043782b
add esp, 0xc
jmp 0x40fd11
xor ecx, ecx
mov word [esp + 0x3d4], cx
push str.downloadDate
mov eax, esi
call fcn.00431480
test eax, eax
je 0x40fd26
mov eax, dword [eax + 4]
jmp 0x40fd28
xor eax, eax
test eax, eax
je 0x40fd41
push eax
lea edx, [esp + 0xd0]
push 0x40
push edx
call fcn.0043782b
add esp, 0xc
jmp 0x40fd4b
xor eax, eax
mov word [esp + 0xcc], ax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [edi + 0xf44]
push 0x40
push edx
call fcn.0043782b
add esp, 0xc
push str.userAgent
mov eax, esi
call fcn.00431480
test eax, eax
je 0x40fd79
mov eax, dword [eax + 4]
jmp 0x40fd7b
xor eax, eax
push edi
mov esi, eax
call fcn.00410520
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
mov ebx, 1
call edx
test al, al
je 0x40fde8
mov eax, dword [esp + 0x18]
push str.pinstallMax
call fcn.00431480
test eax, eax
je 0x40fdac
mov eax, dword [eax + 4]
jmp 0x40fdae
xor eax, eax
test eax, eax
je 0x40fdc7
push eax
lea eax, [esp + 0x90]
push 0x20
push eax
call fcn.0043782b
add esp, 0xc
jmp 0x40fdd1
xor ecx, ecx
mov word [esp + 0x8c], cx
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ebx, eax
test ebx, ebx
jne 0x40fde8
lea ebx, [eax + 1]
push str.dwnloader_web_setup_mutex
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40fe7a
lea eax, [esp + 0x1cc]
lea ecx, [esp + 0x70]
call fcn.004020f0
lea esi, [esp + 0x3d4]
mov byte [esp + 0x9f8], 2
call fcn.004075f0
movzx eax, al
push eax
mov eax, dword [edi + 0x10]
push ebx
lea ecx, [esp + 0x78]
push ecx
push edi
push eax
call fcn.004174e0
mov byte [esp + 0x9f8], 1
cmp dword [esp + 0x84], 8
jb 0x40fe5b
mov edx, dword [esp + 0x70]
push edx
call fcn.00437245
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
jmp 0x40fe9a
push edi
mov ebx, str.secondIns
call fcn.0040f770
mov ecx, dword [edi + 0x9938]
push str.secont_instance__skip_pinstalls
push str.INFO
call fcn.0040c980
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
push esi
call fcn.00437245
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
je 0x40fec8
push eax
call fcn.00437245
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x9fc], 0xffffffff
call fcn.004302a0
mov ecx, dword [esp + 0x9f0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x9dc]
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret