Function at 0x70e4fce1
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70e74478
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x44], ebx
mov esi, ecx
jne 0x70e4fe6e
call fcn.70e4fc15
xor edi, edi
mov dword [ebx + 0x20], eax
cmp eax, edi
je 0x70e4fe6e
dec eax
mov ecx, eax
and ecx, 0x3ff
sub eax, ecx
lea ecx, [eax + 0x400]
shr ecx, 3
xor eax, eax
mov dword [ebx + 0x14], ecx
mov edx, dword [esi + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x68]
mov esi, dword [esi + 0xe8]
mov dword [ebp - 0x20], eax
lea eax, [esi + 4]
mov dword [ebp - 0x34], edx
lea edx, [eax + 2]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], edx
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x70e4fd99
sub eax, dword [ebp - 0x3c]
add esi, 4
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [0x70e89a14]
add eax, 0x1c
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov eax, dword [0x70e89a14]
mov esi, dword [eax + 0x18]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], 2
push 0x64
mov eax, 0x70e82b20
mov dword [ebp - 0x58], 0x70df9424
call fcn.70dff40a
mov edi, eax
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0x70e82b20
mov eax, edi
mov byte [ebp - 4], 3
call fcn.70df8aa5
mov edx, dword [ebp - 0x54]
push edx
mov ecx, esi
call fcn.70e266e4
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.70e26493
push edi
mov byte [ebp - 4], 2
call fcn.70df3455
add esp, 4
mov dword [ebp - 4], 1
jmp 0x70e4fe85
xor al, al
jmp 0x70e4ffe2
mov esi, dword [ebp - 0x50]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0x70e82b20
mov eax, esi
call fcn.70df8aa5
cmp word [ebp - 0x40], 0x65
je 0x70e4fec6
mov byte [ebp - 4], 0
test esi, esi
je 0x70e4feb5
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x70e4ffe2
lea edx, [ebp - 0x44]
push edx
push esi
mov edi, 0x70e82b20
mov dword [ebp - 0x44], 0x70df9424
call fcn.70df8f7b
mov edi, eax
cmp dword [edi], 0
jne 0x70e4ff13
push edi
mov byte [ebp - 4], 1
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x70e4ff02
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x70e4ffe2
mov ecx, dword [edi + 4]
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x70e4ff5f
push edi
mov dword [ebx + 0x18], 0xffffffff
mov byte [ebp - 4], 1
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x70e4ff4e
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x70e4ffe2
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x70e4ffb3
mov edx, dword [ebx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [ebx + 0x18], 0xffffffff
mov byte [ebp - 4], 1
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x70e4ffa5
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x70e4ffe2
push edi
mov byte [ebx + 0x10], 1
mov byte [ebp - 4], 1
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
test esi, esi
je 0x70e4ffd6
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.70df25ed
mov esp, ebp
pop ebp
ret 4