Function at 0x5addaca1
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5adf1018]
push ebx
push esi
push edi
mov edi, dword [sym.imp._CKERNEL.dll_MapViewOfFile]
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 2
push eax
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x85], 1
mov dword [ebp - 0x8c], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x5addad25
mov esi, dword [sym.imp._CKERNEL.dll_GetCurrentProcess]
push ebx
push ebx
push 2
lea eax, [ebp - 0x8c]
push eax
call esi
push eax
push dword [ebp - 0x94]
call esi
push eax
call dword [sym.imp._CKERNEL.dll_DuplicateHandle]
test eax, eax
je 0x5ade1cb0
push ebx
push ebx
push ebx
push 2
push dword [ebp - 0x8c]
call edi
mov esi, eax
cmp esi, ebx
je 0x5ade1cb0
test byte [esi + 0xc], 4
mov dword [ebp - 0x90], ebx
je 0x5addadf8
test byte [esi + 0xc], 2
jne 0x5addadf8
cmp dword [esi + 0x30], ebx
je 0x5ade1cd2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
push dword [esi + 0x30]
push 0x5addae38
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.5adcd351
add esp, 0x14
lea eax, [ebp - 0x84]
push eax
push 1
push ebx
push ebx
call dword [sym.imp._CKERNEL.dll_CreateSemaphoreW]
mov dword [ebp - 0x9c], eax
call dword [sym.imp._CKERNEL.dll_GetLastError]
cmp eax, 0xb7
jne 0x5addae28
cmp dword [ebp + 0xc], ebx
je 0x5addade4
test byte [esi + 0xc], 4
je 0x5addade4
test byte [esi + 0xc], 2
jne 0x5addade4
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
shr ecx, 4
add eax, esi
cmp ecx, ebx
jle 0x5addadd4
lea edi, [eax + 8]
mov dword [ebp - 0x98], ecx
push dword [edi]
push esi
call fcn.5addab9b
add edi, 0x10
dec dword [ebp - 0x98]
jne 0x5addadc1
cmp byte [ebp - 0x85], bl
je 0x5ade1cf2
and dword [esi + 0xc], 0xfffffffb
cmp dword [ebp - 0x9c], ebx
je 0x5addadf8
push dword [ebp - 0x9c]
call dword [sym.imp._CKERNEL.dll_CloseHandle]
push esi
call dword [sym.imp._CKERNEL.dll_UnmapViewOfFile]
cmp dword [ebp - 0x8c], ebx
pop edi
pop esi
pop ebx
je 0x5addae16
push dword [ebp - 0x8c]
call dword [sym.imp._CKERNEL.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
call fcn.5adc1549
leave
ret 8
cmp eax, 5
je 0x5addad98
jmp 0x5addad9d
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x94]
call edi
mov esi, eax
cmp esi, ebx
mov byte [ebp - 0x85], bl
jne 0x5addad25
jmp 0x5ade1dab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
call dword [sym.imp._CKERNEL.dll_GetCurrentProcessId]
push eax
push 0x5ade1dcc
jmp 0x5addad5f
push 0x41d
call fcn.5adc157d
mov dword [ebp - 0x90], eax
call fcn.5adc892b
test al, al
je 0x5addade4
push 0xe
pop ecx
xor eax, eax
push 0xe
lea edi, [ebp - 0xd4]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xd4]
push eax
push dword [0x5adf1170]
mov dword [ebp - 0xbc], 0xa
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], 4
mov word [ebp - 0xd4], 0x20
mov word [ebp - 0xd2], 0x38
call dword [sym.imp._Cntl.dll_NtRequestWaitReplyPort]
mov edi, eax
push edi
call fcn.5adc8966
cmp edi, ebx
jl 0x5ade1d9a
mov edi, dword [ebp - 0xf4]
cmp edi, ebx
jl 0x5ade1d9a
mov dword [ebp - 0x90], ebx
jmp 0x5addade4
or edi, 0x10000000
mov dword [ebp - 0x90], edi
jmp 0x5addade4
call dword [sym.imp._CKERNEL.dll_GetLastError]
cmp eax, ebx
jle 0x5ade1dbf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x90], eax
jmp 0x5addadff