Function at 0x100071d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x60], esp
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x26
mov eax, str.961B9B78_B8F2_43d1_9A35_AE451DFD6156
mov word [esi], cx
call fcn.10003a30
lea ecx, [ebp - 0x58]
call fcn.100070e0
cmp dword [eax + 0x14], 8
jb 0x10007239
mov eax, dword [eax]
push eax
xor esi, esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x60], eax
jb 0x1000725b
mov edx, dword [ebp - 0x58]
push edx
call fcn.10066b10
add esp, 4
push ebx
xor ecx, ecx
sub esp, 0x1c
mov eax, 7
mov word [ebp - 0x58], cx
mov ecx, esp
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x5c], esp
xor edx, edx
mov dword [ebp - 0x48], esi
push 0x26
mov eax, str.2D77842A_A226_4b11_8C73_E18F672FB3A2
mov esi, ecx
mov word [ecx], dx
call fcn.10003a30
lea ecx, [ebp - 0x3c]
call fcn.100070e0
cmp dword [eax + 0x14], 8
jb 0x1000729e
mov eax, dword [eax]
push eax
xor esi, esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x5c], eax
jb 0x100072c0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.10066b10
add esp, 4
push ebx
xor ecx, ecx
sub esp, 0x1c
mov eax, 7
mov word [ebp - 0x3c], cx
mov ecx, esp
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x70], esp
xor edx, edx
mov dword [ebp - 0x2c], esi
push 0x26
mov eax, str.594947EB_D5AF_4159_843C_9FA18F8098C2
mov esi, ecx
mov word [ecx], dx
call fcn.10003a30
lea ecx, [ebp - 0x20]
call fcn.100070e0
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x10007307
mov eax, dword [eax]
push eax
push 0xa00000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp dword [ebp - 0xc], ebx
jb 0x1000732e
mov eax, dword [ebp - 0x20]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x60], ecx
je 0x1000746d
cmp dword [ebp - 0x5c], ecx
je 0x1000746d
test esi, esi
je 0x1000746d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ecx
push ecx
push 2
push esi
call ebx
mov edx, dword [ebp - 0x64]
mov dword [eax], 4
mov ecx, dword [edx]
push eax
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x5c]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100073dc
push 0x10092a38
mov ecx, 0x100aa2d0
call fcn.100057b0
mov edx, dword [ebp - 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call ebx
mov eax, dword [ebp - 0x5c]
push eax
call ebx
push esi
call ebx
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000747f
push 4
push 0
push 0
push 4
push esi
call ebx
mov ebx, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea edx, [ebx + 4]
push edx
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x64], eax
add eax, 4
push ebx
push eax
mov eax, dword [ebp - 0x6c]
push eax
call fcn.10073cd0
mov ecx, dword [ebp - 0x64]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov dword [edx], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [ebp - 0x5c]
push ecx
call ebx
mov edx, dword [ebp - 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [ebp - 0x5c]
push eax
call ebx
push esi
call ebx
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0xc
push 0x10092a00
mov ecx, 0x100aa2d0
call fcn.100057b0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0xc