Function at 0x3000431a
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x300a250e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
push ebx
push esi
push edi
mov eax, dword [0x3002dd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0x14]
push 0x30021d60
xor ebx, ebx
push ebx
push 4
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
je 0x3003e61b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.3000427d
test eax, eax
jl 0x30004642
mov dword [ebp - 0x18], 0x28
mov dword [ebp - 0x10], ebx
mov ecx, dword [0x300b033c]
mov eax, dword [ecx + 0x64]
mov edx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
mov edi, 0x102
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], edi
mov esi, dword [sym.imp.ONMain.DLL_void___stdcall_MsoCF::Strings::SetWzFromResource_class_MsoCF::CWzInBuffer_T_class_MsoCF::String_struct_MsoCF::WzTraits___class_MsoCF::CBuffer_wchar_t_____struct_HINSTANCE_____unsigned_int__int__]
push ebx
push 0x1a
push eax
lea edx, [ebp - 0x134]
push edx
mov byte [ebp - 4], 1
call esi
mov eax, dword [0x300b033c]
mov eax, dword [eax + 0x64]
mov ecx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], edi
push ebx
push 1
push eax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 3
call esi
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x244]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push edx
push eax
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.ONMain.DLL_void___stdcall_MsoCF::CreateProgressDialog_struct_HWND_____wchar_t_const___wchar_t_const___struct_MsoCF::IProgress____bool_]
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x238]
cmp eax, ecx
jne 0x3003e63d
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x124]
cmp eax, edx
mov byte [ebp - 4], 0
jne 0x3003e648
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x30004507
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov eax, dword [0x300b033c]
mov eax, dword [eax + 0x64]
mov ecx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
mov ebx, dword [ebp - 0x10]
lea edx, [ebp - 0x124]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], edi
push 0
push 0x45
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 5
call esi
mov edx, dword [ebp - 0x130]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x30]
push edx
push ebx
mov byte [ebp - 4], 6
call eax
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x124]
cmp eax, ecx
mov byte [ebp - 4], 0
jne 0x3003e653
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push 0x28
push eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 1
push eax
call edx
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ecx], 1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x44]
call eax
test eax, eax
jne 0x300045ba
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], ebx
mov dword [ebp - 0x14], ebx
je 0x3003e660
push 0x30021d10
push 0
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x3003e65e
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x3000459c
mov edx, dword [ebp - 0x1c]
push eax
push eax
push eax
mov eax, dword [edx]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x3000459c
cmp byte [eax + 8], bl
jne 0x3000459c
mov ecx, dword [eax]
test ecx, ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
jne 0x30004593
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [eax + 8], bl
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x3003e65e
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
xor ebx, ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x300045d7
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push eax
call edx
cmp eax, 1
je 0x3003e688
cmp dword [ebp - 0x18], ebx
je 0x3003e699
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov edi, dword [sym.imp.USER32.dll_IsWindow]
jne 0x3003e6b9
xor bl, bl
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x3003e6cb
mov byte [ebp + 0x17], 0
test bl, bl
jne 0x3003e6d3
mov al, byte [ebp + 0x17]
neg al
sbb eax, eax
and eax, esi
test eax, eax
jne 0x3003e6db
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x30004642
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
je 0x30004377
jmp 0x30004642
cmp dword [ebp - 0x18], ebx
jle 0x300045bd
jmp 0x30004513
test eax, eax
mov byte [ebp + 0x17], 1
je 0x3000460f
jmp 0x30004613
cmp eax, 2
je 0x30004642
cmp eax, ebx
jle 0x30004658
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jmp 0x30004658
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
jmp 0x30004451
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
jmp 0x30004469
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
jmp 0x300044e8
xor ebx, ebx
sub dword [ebp - 0x18], 1
push 0x1f4
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x30004660
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 1
push eax
call edx
mov eax, dword [ebp - 0x10]
jmp 0x30004660
push ebx
push 0x36787339
call dword [sym.imp.MSO.dll_Ordinal_6848]
jmp 0x300045f1
push ebx
push 0x36787361
call dword [sym.imp.MSO.dll_Ordinal_6848]
mov ecx, dword [0x300b033c]
push 0x30
push 0x46
call fcn.30055893
jmp 0x300045f1
push eax
call edi
test eax, eax
je 0x30004602
mov bl, 1
jmp 0x30004604
push esi
call edi
jmp 0x3000466e
mov eax, dword [ebp - 0x14]
jmp 0x30004624
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x3003e6fc
cmp byte [ebp + 0x17], 0
je 0x3003e6f3
mov ebx, esi
jmp 0x3003e6fa
neg bl
sbb ebx, ebx
and ebx, dword [ebp - 0x14]
mov dword [eax], ebx
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
test eax, eax
je 0x3003e712
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x3003e728
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10