Function at 0x411ef8
Capabilities:
Check mutex on windows
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xcc], ecx
push ebx
push 1
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xf0], 0x44ea58
push 0x4547e4
push eax
mov esi, edx
mov dword [ebp - 0xec], ebx
call fcn.00410aef
push 2
pop eax
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x150]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x14c], ebx
mov byte [ebp - 0x148], bl
push 0x1f01ff
push eax
mov dword [ebp - 0x150], 0x44e9fc
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
call fcn.00410511
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004100ff
push ecx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040ffdd
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xf4]
push esi
mov dword [ebp - 0x130], 0xc
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ebx
call fcn.00401e23
mov edi, dword [ebp - 0xf4]
lea eax, [ebp - 0x130]
push ebx
push 0x80
push 4
push eax
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0xcc]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x41201f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4123d7
call fcn.00402506
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402331
lea edx, [ebp - 0xd0]
mov ecx, edi
call fcn.00411e16
mov ebx, eax
test ebx, ebx
je 0x412056
mov ecx, dword [ebp - 0xd0]
lea ecx, [ecx - 0x10]
call fcn.004025d7
jmp 0x4123d7
and dword [ebp - 0xd4], 0
lea eax, [ebp - 0x68]
push 0
push 1
push 0x4547e4
push eax
mov dword [ebp - 0xd8], 0x44ea58
call fcn.00410aef
push 2
pop ecx
xor eax, eax
mov dword [ebp - 0x118], ecx
add esp, 0xc
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], al
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x68]
push 0x1f0003
push eax
mov dword [ebp - 0x124], 0x44e9fc
call fcn.00410511
push ecx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004100ff
push ecx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040ffdd
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
and dword [ebp - 0xfc], 0
lea ecx, [ebp - 0xdc]
push 0x30
mov dword [ebp - 0x100], eax
pop eax
push eax
mov dword [ebp - 0x104], 0xc
call fcn.0041295f
pop ecx
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xdc]
mov dword [esi + 0x14], eax
lea ecx, [ecx - 0x10]
call fcn.004025d7
cmp dword [esi + 0x14], 0
jne 0x41217e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x124]
mov ebx, eax
call fcn.004105bf
lea ecx, [ebp - 0x68]
call fcn.00410bfa
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x44ea58
call fcn.00410c58
jmp 0x412043
push 0x31
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xdc]
call fcn.0041295f
pop ecx
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xdc]
mov dword [esi + 0x18], eax
lea ecx, [ecx - 0x10]
call fcn.004025d7
cmp dword [esi + 0x18], 0
je 0x412149
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x4121e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4123a1
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412229
cmp eax, 0x80
je 0x412229
mov ebx, 0x102
cmp eax, ebx
je 0x412391
cmp eax, 0xffffffff
jne 0x41221f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x412391
mov ebx, 0x65b
jmp 0x412391
push 0
lea eax, [ebp - 0xdc]
push eax
push 8
pop eax
push eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0xcc]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41237d
push 8
pop ecx
mov edx, 0x594c47
cmp dword [ebp - 0xdc], ecx
jb 0x412285
cmp dword [ebp - 0xe4], edx
jne 0x412285
cmp word [ebp - 0xe0], cx
jb 0x412285
mov ax, word [ebp - 0xde]
cmp ax, word [ebp - 0xe8]
jb 0x41229b
xor eax, eax
mov dword [ebp - 0xe4], edx
mov word [ebp - 0xe0], cx
mov word [ebp - 0xde], ax
mov ecx, dword [ebp - 0xcc]
lea edx, [ebp - 0xf4]
movzx eax, ax
push 0x30
mov dword [ecx + 4], eax
pop ecx
add ax, cx
lea ecx, [ebp - 0xe8]
movzx eax, ax
push eax
call fcn.0041295f
pop ecx
push 0
push 0x80
push 3
lea ecx, [ebp - 0x130]
push ecx
push 3
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [edx + 4]
mov dword [edx + ecx*4 + 0xc], eax
mov ecx, dword [ebp - 0xe8]
lea ecx, [ecx - 0x10]
call fcn.004025d7
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 4]
cmp dword [ecx + eax*4 + 0xc], 0xffffffff
je 0x41237d
dec eax
and eax, 1
mov word [ebp - 0xde], ax
push dword [ecx + eax*4 + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x41237d
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 0xcc]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
and dword [ebp - 0xf8], 0
lea eax, [ebp - 0xf8]
push 0
push eax
push 8
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0xcc]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41237d
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 4]
push dword [ecx + eax*4 + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412385
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4123e0
lea ecx, [ebp - 0x124]
call fcn.004105bf
lea ecx, [ebp - 0x68]
call fcn.00410bfa
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x44ea58
call fcn.00410c58
lea ecx, [esi - 0x10]
call fcn.004025d7
mov esi, dword [ebp - 0xcc]
mov ecx, esi
call fcn.00411e7f
jmp 0x41241d
mov eax, dword [ebp - 0xcc]
push 2
pop ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x124]
call fcn.004105bf
lea ecx, [ebp - 0x68]
call fcn.00410bfa
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x44ea58
call fcn.00410c58
lea ecx, [esi - 0x10]
call fcn.004025d7
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004025d7
lea ecx, [ebp - 0x150]
call fcn.004105bf
lea ecx, [ebp - 0xc8]
call fcn.00410bfa
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x44ea58
call fcn.00410c58
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret