Function at 0x66e8b0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x7c6e88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
xor eax, eax
mov ebx, eax
mov dword [esp + 0x20], eax
mov ebp, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov edi, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], esi
cmp esi, 0x200000
ja 0x66e979
push esi
mov dword [esp + 0x20], 1
call fcn.00724cfe
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x66e981
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 4]
lea esi, [ebp + 0x20]
mov ecx, esi
mov dword [esp + 0x28], esi
call edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
mov dword [esp + 0x58], ebx
call fcn.0066e730
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
mov dword [esp + 0x54], 0xffffffff
call eax
mov esi, dword [esp + 0x5c]
test edi, edi
jne 0x66eae1
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], 0
call fcn.0066de00
add esp, 4
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], 1
jae 0x66e9ad
lea eax, [esp + 0x30]
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x66eab2
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x66eab2
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x66ea05
lea ecx, [esp + 0x2c]
call fcn.00403c30
jmp 0x66eabf
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x66ea2e
lea ecx, [esp + 0x2c]
call fcn.00403c30
jmp 0x66eabf
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x66ea52
lea ecx, [esp + 0x2c]
call fcn.00403c30
jmp 0x66eacc
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 4]
lea esi, [ebp + 0x20]
mov ecx, esi
mov dword [esp + 0x28], esi
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov byte [esp + 0x58], 2
call fcn.0066e730
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov byte [esp + 0x54], 1
call edx
cmp dword [esp + 0x44], 8
jb 0x66eae1
mov eax, dword [esp + 0x30]
push eax
call fcn.00704960
add esp, 4
jmp 0x66eae1
lea ecx, [esp + 0x2c]
call fcn.00403c30
mov esi, dword [esp + 0x14]
test edi, edi
je 0x66eacc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x66ead9
push ebx
call ebp
cmp esi, 0xffffffff
je 0x66eae1
push esi
call ebp
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x44
ret 4