Function at 0x4097f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Read file on windows
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor esi, esi
push str.Synchronization
push esi
mov ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x409814
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.Share_Memory
push 0x5e7e
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebx + 0x4bb4], eax
jne 0x40983e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409868
mov eax, dword [ebx + 0x4bb4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x4bb4], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [ebx + 0x4bb4]
push 0x5e7e
push esi
push esi
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
mov dword [ebx + 0x4bb0], edi
jne 0x409897
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, 0x179f
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll_calloc]
push 1
rep stosd dword es:[edi], eax
push 0x24
stosw word es:[edi], ax
call ebp
add esp, 8
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4098c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov dword [eax], 0x5e7e
mov dword [eax + 4], 0x24
mov dword [eax + 8], 0xb58
mov dword [eax + 0xc], 0xb7c
mov dword [eax + 0x10], 0x4e20
mov dword [eax + 0x14], 0x599c
mov dword [eax + 0x18], 0x4e2
mov dword [eax + 0x1c], 0x5e7e
mov dword [eax + 0x20], esi
mov edi, dword [ebx + 0x4bb0]
mov ecx, 9
mov esi, eax
push 1
push 0x104
rep movsd dword es:[edi], dword [esi]
call ebp
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x409930
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebx + 0x4bbc]
push 0x41a144
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
add esp, 8
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
push 0
jne 0x409964
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [ebx + 0x1d8c]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push edx
push esi
call edi
push esi
push 4
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ecx, ebx
push ebp
call fcn.00406120
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x4bb0]
mov edx, dword [ecx + 4]
mov cx, word [ebx + 0x1da8]
mov word [eax + edx], cx
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x4bb0]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
test eax, eax
mov word [edx + ecx + 2], ax
jle 0x409a7b
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x1c], eax
jmp 0x4099e5
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x1d8c]
add edx, eax
push 0
push edx
push esi
call edi
push esi
push 4
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ecx, ebx
push ebp
call fcn.00406120
push 0
push eax
push esi
call edi
push esi
push 0x28
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ecx, 0xa
mov esi, ebp
lea edi, [ebx + 0x1d24]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x4bb0]
mov edx, dword [edx + 4]
add ecx, eax
add eax, 0x28
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edi, [ecx + edx + 0xc]
mov edx, dword [esp + 0x14]
add edx, 4
mov ecx, 0xa
lea esi, [ebx + 0x1d24]
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jne 0x4099db
mov esi, dword [esp + 0x20]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret