Function at 0x40249a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034c8
push 0x402eac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc0
push ebx
push esi
push edi
push 0x20
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4024da
xor eax, eax
jmp 0x402739
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
push edx
push str.SHQ_FILEMAPPING__d
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x40253a
push 0xffffffffffffffff
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x40]
jmp 0x402739
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
jne 0x40257b
push 0xffffffffffffffff
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x44]
jmp 0x402739
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
add edx, 0x18
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
push ecx
push str.SHQ_MUTEX__d
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x1c], 0
jne 0x4025dd
push 0xffffffffffffffff
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x48]
jmp 0x402739
mov ecx, dword [ebp + 8]
push ecx
push str.SHQ_SEM_USED__d
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
jne 0x402630
push 0xffffffffffffffff
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x4c]
jmp 0x402739
mov ecx, dword [ebp + 8]
push ecx
push str.SHQ_SEM_FREE__d
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x18], 0
jne 0x402683
push 0xffffffffffffffff
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x50]
jmp 0x402739
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x73687131
mov dword [ebp - 4], 0xffffffff
call fcn.0040269d
jmp 0x402736
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret