Function at 0x10039060
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100840d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.Mutex
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10022e60
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push dword [ebp - 0x10]
mov dword [edi], eax
test eax, eax
lea eax, [ebp - 0x18]
jne 0x1003913b
push str.Creating_new_mutex_s
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10039100
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
jne 0x10039178
mov dword [ebp + 0xc], str._Could_not_open_create_mutex
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.1006cb0e
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x100ac114
push eax
call fcn.10070600
push str.Opening_existing_mutex_s
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10039178
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10095680
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.10022e60
add esp, 4
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 4], eax
test eax, eax
je 0x100391ca
push dword [ebp + 0xc]
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x1003928c
mov dword [ebp + 0xc], str._MapViewOfFile_failed
jmp 0x1003911a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x44]
movq qword [ebp - 0x24], xmm0
push 1
push eax
movdqu xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x1003925c
mov dword [ebp + 0xc], str._CreateFileMapping_failed
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.1006cb0e
mov dword [ebp - 0x30], vtable.std::runtime_error.0
lea eax, [ebp - 0x30]
push 0x100ac114
jmp 0x10039135
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x1003927e
mov dword [ebp + 0xc], str._MapViewOfFile_failed
jmp 0x1003923c
push dword [ebp + 0xc]
push 0
push eax
call fcn.1006df00
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100392ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100392cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100392ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8