Function at 0x100a92a0
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x418], eax
call fcn.100a9880
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100fc650
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100fc650
add esp, 0x18
test edi, edi
je 0x100a95bf
cmp word [edi], 0
je 0x100a95bf
push ebx
push edi
push str._s_accessmutex
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10049d10
lea ecx, [ebp - 0x20c]
mov ebx, edi
mov eax, ecx
add esp, 0x10
mov edx, 0x104
sub ebx, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a934e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x100a934e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a9330
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x20c]
call fcn.100a9a90
call fcn.10042db0
mov ecx, eax
xor eax, eax
cmp dword [ecx + 0x128], 1
jne 0x100a937f
cmp dword [ecx + 4], eax
cmovne eax, ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x218], eax
test eax, eax
je 0x100a95a1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10042db0
mov ecx, eax
xor eax, eax
cmp dword [ecx + 0x128], 1
jne 0x100a93bf
cmp dword [ecx + 4], eax
cmovne eax, ecx
lea ecx, [ebp - 0x414]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x100a95a1
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi + 4]
mov edx, 0x104
mov ecx, eax
sub edi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a940e
movzx eax, word [edi + ecx]
test ax, ax
je 0x100a940e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a93f0
mov edi, dword [ebp + 0xc]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
push ecx
add edi, 0x50
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10042db0
mov ecx, eax
xor eax, eax
cmp dword [ecx + 0x128], 1
jne 0x100a9440
cmp dword [ecx + 4], eax
cmovne eax, ecx
lea ecx, [esi + 4]
push ecx
push edi
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20c], eax
test eax, eax
jne 0x100a946d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a957d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100a9484
mov dword [esi + 0x214], 1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push 0
push 6
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x210], eax
test eax, eax
jne 0x100a94ca
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x100a957d
push eax
call edi
mov dword [esi + 0x20c], 0
jmp 0x100a957d
cmp dword [esi + 0x214], 0
jne 0x100a9511
mov ecx, dword [ebp + 0xc]
add ecx, 0x50
push ecx
push 0
push eax
call fcn.100fc650
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x210]
push edx
push dword [ebp - 0x418]
lea ecx, [edx + 0x50]
mov dword [eax], ecx
mov eax, dword [esi + 0x210]
add eax, 0x50
push eax
call fcn.100fbb50
mov eax, dword [esi + 0x210]
add esp, 0x18
jmp 0x100a9552
push 0x1c
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x41c], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x434], xmm0
movq qword [ebp - 0x424], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esi + 0x210]
mov ecx, dword [eax]
cmp dword [ebp - 0x428], ecx
jb 0x100a9576
cmp ecx, 0x50
jbe 0x100a9576
test eax, eax
je 0x100a9568
push dword [esi + 0x218]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x210]
xor ecx, ecx
mov esi, 0x80004005
test eax, eax
cmovne esi, ecx
jmp 0x100a9582
mov ecx, esi
call fcn.100a9880
mov esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call edi
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
pop edi
xor ecx, ebp
pop esi
call fcn.100e278d
mov esp, ebp
pop ebp
ret 0xc