Function at 0x45be60
Capabilities:
Check mutex on windows
Create thread
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x834], eax
push edi
push 0
push dword [esi + 0x28]
mov dword [esi + 0x48], 0
call eax
test eax, eax
jne 0x45c2d1
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bea1
sub ecx, edx
je 0x45c2d1
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45beb5
sub ecx, edx
cmp ecx, 0xfa
jae 0x45c2d1
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00552fcb
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00552fcb
push str.Mutex0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00553025
push str.Mutex1
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00553025
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [ebp - 0x108]
add esp, 0x30
push eax
push 0
push 0
call edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x45c2d1
test eax, eax
je 0x45c2d1
push 0
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x82c]
push 0
push eax
push 2
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, eax
test ecx, ecx
je 0x45bf8a
cmp ecx, 1
jne 0x45c2c7
xor eax, eax
mov dword [esi + 0xc], ecx
test ecx, ecx
push ebx
sete al
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00552fcb
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00552fcb
push 0x5d9690
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00553025
push 0x5d9694
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00553025
add esp, 0x30
lea eax, [ebp - 0x310]
push eax
push 0x20c
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x45c2c7
lea eax, [ebp - 0x414]
push eax
push 0x20c
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x45c2c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0
push 0
push 0xf001f
push dword [esi + 0x14]
cmp eax, 0xb7
sete byte [ebp - 0x82d]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x24], eax
test eax, eax
je 0x45c2bd
cmp byte [ebp - 0x82d], 0
je 0x45c07c
cmp dword [eax], 0x208
jne 0x45c2b4
jmp 0x45c082
mov dword [eax], 0x208
push 0x208
push 0
push 0
push 0xf001f
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x208
push 0
push 0
push 0xf001f
push dword [esi + 0x18]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], ecx
test eax, eax
je 0x45c2b4
test ecx, ecx
je 0x45c2b4
add eax, 4
mov dword [esi + 0x1c], eax
lea eax, [ecx + 4]
push ebx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x518]
push 0x104
push eax
call fcn.00552fcb
push ebx
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00552fcb
push ebx
lea eax, [ebp - 0x720]
push 0x104
push eax
call fcn.00552fcb
push ebx
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.00552fcb
push str.DataWrit0
lea eax, [ebp - 0x518]
push 0x104
push eax
call fcn.00553025
push str.DataWrit1
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00553025
add esp, 0x48
lea eax, [ebp - 0x720]
push str.DataRead0
push 0x104
push eax
call fcn.00553025
push str.DataRead1
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.00553025
add esp, 0x18
lea eax, [ebp - 0x518]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x61c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x720]
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x2c], 0
mov dword [esi + 0x38], eax
je 0x45c2a4
cmp dword [esi + 0x30], 0
je 0x45c2a4
cmp dword [esi + 0x34], 0
je 0x45c2a4
test eax, eax
je 0x45c2a4
push ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x45c2a4
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x45c281
push 0xffffffffffffffff
push eax
call dword [ebp - 0x834]
test eax, eax
jne 0x45c29f
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
push 0
push 0
mov dword [esi + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 0
push 0x45c400
mov dword [esi + 0x44], eax
call fcn.00552f2f
add esp, 0xc
mov dword [esi + 0x40], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 1
jne 0x45c29f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [esi + 0x3c]
call dword [ebp - 0x834]
cmp eax, 0x102
jmp 0x45c225
push dword [esi + 0x3c]
call edi
push dword [esi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call ebx
push dword [esi + 0x20]
call ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x14]
call edi
push dword [esi + 0x18]
call edi
push dword [esi + 4]
call edi
push dword [esi + 8]
call edi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f395
mov esp, ebp
pop ebp
ret 0xc