Function at 0x2103298c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107b429
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.21032909
cmp dword [ebp + 0xc], 0
jne 0x210329e1
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x210329ff
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0xffffffff
jne 0x21032af8
cmp dword [ebp + 0x14], 0
je 0x21032a16
jmp 0x21032ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.21013476
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [0x21095d08]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
push str.CreateFile_failed__error_code__d
lea eax, [ebp - 0x14]
push eax
call fcn.2106d193
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x21032a6e
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x21032a6e
mov dword [ebp - 0x30], 0
jmp 0x21032a75
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
jne 0x21032a94
push 0x2108ff6c
lea ecx, [ebp - 0x14]
call fcn.2106e74f
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.2106e74f
push 0x2108ff74
lea ecx, [ebp - 0x14]
call fcn.2106e74f
push 0x2108ff7c
lea ecx, [ebp - 0x14]
call fcn.2106e74f
push 0x2108ffa0
lea ecx, [ebp - 0x14]
call fcn.2106e74f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.2106e74f
mov edx, dword [ebp - 0x14]
push edx
call fcn.210127bb
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
push str.CreateFile
call fcn.210123f1
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.2106e41d
jmp 0x21032ca9
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], 1
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0xffffffff
jne 0x21032b37
cmp dword [ebp + 0x14], 0
jne 0x21032b32
push str.GetFileSize
call fcn.210123d5
add esp, 4
jmp 0x21032ca9
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x21032c58
cmp dword [ebp + 0x14], 0
je 0x21032b79
jmp 0x21032ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.21013476
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [0x21095d08]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x28]
push edx
push str.CreateFileMapping_failed__error_code__d
lea eax, [ebp - 0x20]
push eax
call fcn.2106d193
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x21032bd1
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x21032bd1
mov dword [ebp - 0x34], 0
jmp 0x21032bd8
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0
jne 0x21032bf7
push 0x21090028
lea ecx, [ebp - 0x20]
call fcn.2106e74f
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.2106e74f
push 0x21090030
lea ecx, [ebp - 0x20]
call fcn.2106e74f
push str.CMappedFile::Open
lea ecx, [ebp - 0x20]
call fcn.2106e74f
push 0x2109005c
lea ecx, [ebp - 0x20]
call fcn.2106e74f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.2106e74f
mov edx, dword [ebp - 0x20]
push edx
call fcn.210127bb
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
push 0x21090064
call fcn.210123f1
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.2106e41d
jmp 0x21032ca9
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0xf001b
add ecx, 4
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 0
jne 0x21032ca0
cmp dword [ebp + 0x14], 0
jne 0x21032c9e
push 0x21090088
call fcn.210123d5
add esp, 4
jmp 0x21032ca9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x21032cb9
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.21032909
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10