Function at 0x100a9880
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b058
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x101a4494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0x200000
ja 0x100a993c
mov dword [ebp - 0x34], 1
mov edx, dword [ebp + 8]
push edx
call fcn.1013c4bf
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x100a993c
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x48]
call fcn.100a9310
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.100a95c0
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x10], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100a94b0
cmp dword [ebp - 0x2c], 0
jne 0x100a9b04
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100a9c50
add esp, 4
mov dword [ebp - 4], 1
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x28]
call fcn.10053a28
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x100a99a5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
jmp 0x100a9ab9
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x100a99d4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
jmp 0x100a9ab9
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a99f6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
jmp 0x100a9ab9
push 0
push 0
push 0
push 4
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x100a9a27
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
jmp 0x100a9ab9
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x100a9a53
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
jmp 0x100a9ab9
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x50]
call fcn.100a9310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.100a95c0
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x10], edx
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.100a94b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100098e0
xor eax, eax
jne 0x100a9954
cmp dword [ebp - 0x44], 0
jne 0x100a9b04
cmp dword [ebp - 0x2c], 0
je 0x100a9ad6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x38], 0
je 0x100a9aed
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x3c], 0xffffffff
je 0x100a9b04
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f4dc3
mov esp, ebp
pop ebp
ret 4