Function at 0x42f830
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ede26
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x560094]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
push 0x40
mov dword [ebp - 0x438], ecx
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4fccd4
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00432840
add esp, 0x18
push 0x1f0001
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x42f8c8
call fcn.004306a0
mov edi, eax
jmp 0x42fac9
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
je 0x42f8e9
test eax, eax
je 0x42f8f6
cmp eax, 0x80
jne 0x42fb3e
test eax, eax
je 0x42f8f6
cmp eax, 0x80
je 0x42f8f6
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x448], esi
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
lea edi, [ebp - 0x420]
mov eax, ecx
movlpd qword [ebp - 0x444], xmm0
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x42f944
movzx eax, word [edi + ecx]
test ax, ax
je 0x42f944
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42f926
lea eax, [ecx - 2]
test edx, edx
push 0x4fccc8
cmovne eax, ecx
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.00432700
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebx, eax
mov dword [ebp - 0x43c], ebx
test ebx, ebx
jne 0x42f9b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42fa64
mov eax, dword [ebp + 4]
push 0x4fcd44
push 0xc9
push eax
call fcn.00431e10
add esp, 0xc
mov edi, eax
jmp 0x42fa19
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0
push eax
push ebx
mov dword [ebp - 0x44c], 0
call fcn.00430e60
mov edi, eax
add esp, 8
test edi, edi
jns 0x42fa6c
mov eax, dword [ebp + 4]
push edi
push 0x4fcd44
push 0xcf
push eax
call fcn.00431e60
mov eax, dword [ebp - 0x43c]
add esp, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x450], fcn.0042fd60
push eax
mov byte [ebp - 4], 6
call fcn.0042fd60
mov byte [ebp - 4], 3
test edi, edi
jns 0x42fa5e
mov eax, dword [ebp + 4]
push edi
push 0x4fcd44
push 0x62
push eax
call fcn.00431e60
mov eax, dword [ebp + 4]
push edi
push 0x4fcd44
push 0x6b
push eax
call fcn.00431e60
mov eax, dword [ebp + 4]
push edi
push 0x4fcd44
push 0x126
push eax
call fcn.00431e60
mov esi, dword [ebp - 0x430]
add esp, 0x30
jmp 0x42fab5
mov esi, dword [ebp - 0x430]
mov edi, dword [ebp - 0x444]
jmp 0x42fa93
mov eax, dword [ebp - 0x434]
cdq
mov edi, eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x454], fcn.0042fd60
push ebx
mov byte [ebp - 4], 0xc
call fcn.0042fd60
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x438]
lea eax, [edi*4]
test eax, eax
je 0x42faff
mov dword [edx], eax
mov ecx, dword [eax]
mov eax, dword [edx]
inc ecx
mov esi, dword [ebp - 0x430]
mov dword [eax], ecx
xor edi, edi
test esi, esi
je 0x42fac3
push esi
mov byte [ebp - 4], 0x11
call fcn.00431c10
mov esi, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42fae1
push esi
mov dword [ebp - 4], 0x12
call fcn.0042fd60
mov eax, edi
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.004a01a0
mov esp, ebp
pop ebp
ret
push edx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004312e0
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x42fab3
mov eax, dword [ebp + 4]
push edi
push 0x4fcd44
push 0x12e
push eax
call fcn.00431e60
mov esi, dword [ebp - 0x430]
add esp, 0x10
jmp 0x42fab5
mov eax, dword [ebp + 4]
push 0x4fcd78
push 0xb4a
push eax
call fcn.0042ffd0
int3