Function at 0x426a90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4fad60]
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.00403e70
lea ecx, [ebp - 0x58]
call fcn.00426960
cmp dword [eax + 0x14], 8
jb 0x426af9
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 0x426b1b
mov edx, dword [ebp - 0x58]
push edx
call fcn.00490a16
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.00403e70
lea ecx, [ebp - 0x3c]
call fcn.00426960
cmp dword [eax + 0x14], 8
jb 0x426b5e
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 0x426b80
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00490a16
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.00403e70
lea ecx, [ebp - 0x20]
call fcn.00426960
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x426bc7
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 0x426bee
mov eax, dword [ebp - 0x20]
push eax
call fcn.00490a16
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 0x426d2d
cmp dword [ebp - 0x5c], ecx
je 0x426d2d
test esi, esi
je 0x426d2d
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 0x426c9c
push 0x4e4530
mov ecx, 0x503bc8
call fcn.004124a0
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 0x426d3f
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.00498770
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.00490a21
mov esp, ebp
pop ebp
ret 0xc
push 0x4e44f8
mov ecx, 0x503bc8
call fcn.004124a0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret 0xc