Function at 0x70df57a7
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jg 0x70df5ac1
jge 0x70df5ab9
mov ecx, dword [ecx]
add ecx, 4
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x70e0320d
mov ecx, dword [esi]
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
je 0x70e032d4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.70df25ed
mov esp, ebp
pop ebp
ret 0xc
test edx, edx
jb 0x70df57db
mov ecx, dword [ecx]
add ecx, 4
push ecx
push edx
push eax
push 4
push edi
mov ecx, eax
push 0xffffffffffffffff
sar ecx, 0x1f
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
call ebx
cmp dword [esi], 0
je 0x70e03249
cmp eax, 0xb7
jne 0x70df57f5
jmp 0x70e0327f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test eax, eax
jle 0x70e03225
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 8], eax
push 0x70e77870
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], 0x70e0795c
call fcn.70e610ef
mov ecx, eax
test eax, eax
jle 0x70e0325b
and ecx, 0xffff
or ecx, 0x80070000
push 0x70e77870
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], 0x70e0795c
mov dword [ebp - 8], eax
call fcn.70e610ef
mov eax, dword [esi + 4]
test eax, eax
je 0x70e03294
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x70e032a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
push 0x70e77870
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x20c], 0x800700b7
mov dword [ebp - 0x210], 0x70e0795c
mov dword [ebp - 8], 0xb7
call fcn.70e610ef
call ebx
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x70e032ed
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x70e03301
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, edi
test edi, edi
jle 0x70e03311
and eax, 0xffff
or eax, 0x80070000
push 0x70e77870
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x70e0795c
mov dword [ebp - 8], edi
call fcn.70e610ef
mov dl, byte [ebp + 0x18]
lea eax, [esi + 0x10]
mov byte [ebp - 4], 2
push eax
lea edi, [ebp + 0x1c]
mov byte [esi + 0xc], dl
call fcn.70df4c1b
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
call edi
test eax, eax
jne 0x70e03380
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.70df3455
mov edx, dword [ebp + 0x10]
push edx
call fcn.70df3455
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x20]
push eax
call edi
test eax, eax
jne 0x70dfc170
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.70df3455
mov edx, dword [ebp + 0x1c]
push edx
call fcn.70df3455
add esp, 8
jmp 0x70dfc170