Function at 0x11042ff
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1388fd8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x1388fdc]
push edi
or edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x138b068
cmp dword [ebp + 8], esi
je 0x110449c
cmp dword [ebp + 0x1c], esi
je 0x110449c
cmp dword [0x138b324], 1
je 0x110435a
mov edi, 0x8000ffff
jmp 0x11044a5
cmp dword [ebp + 0xc], esi
je 0x1104364
cmp dword [ebp + 0xc], edi
jne 0x110436b
mov dword [ebp + 0xc], 0xa00000
push esi
push esi
push 3
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0xc]
call fcn.0108dd07
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0108dcb6
test al, al
jne 0x1104398
cmp ebx, esi
jne 0x11043ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0103e996
mov edi, eax
jmp 0x11044a1
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1104398
cmp dword [ebp + 8], esi
je 0x11043cc
mov edi, 0x80070057
jmp 0x11044a5
cmp eax, dword [ebp + 0xc]
ja 0x11043c2
push esi
push esi
push esi
push dword [ebp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
lea ecx, [ebp - 4]
mov dword [ebp + 0x14], edi
call fcn.0103f4fa
cmp edi, esi
jne 0x11043f5
mov dword [ebp - 4], esi
jmp 0x1104398
push esi
push esi
push esi
push dword [ebp + 0x18]
mov dword [ebp - 4], edi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [ebp - 8]
mov edi, eax
call fcn.010f9ec9
mov dword [ebp - 8], esi
cmp edi, esi
je 0x1104398
lea ecx, [ebp - 0x18]
call fcn.010f7d9f
or dword [ebp - 0xc], 0xffffffff
mov eax, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
call fcn.010f9b6d
push esi
lea ecx, [ebp - 0x20]
call fcn.0103e8e8
mov ecx, dword [0x138b084]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01102c15
mov edi, eax
cmp edi, esi
jl 0x11044a5
cmp dword [ebp + 0xc], esi
jne 0x1104462
mov edi, 0x800700b7
jmp 0x11044a5
mov eax, dword [0x138b084]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx*8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
call fcn.0103e913
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x110448b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x11044a1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], esi
mov dword [eax], ecx
jmp 0x11044a1
mov edi, 0x80070057
cmp edi, esi
jge 0x11044ca
mov eax, dword [0x136ec90]
cmp eax, 0x136ec90
je 0x11044ca
test byte [eax + 0x3c], 2
je 0x11044ca
push edi
push 0x100c684
push 0x23
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0103e52d
lea ecx, [ebp - 0x20]
call fcn.0103e913
lea ecx, [ebp - 0x14]
call fcn.010f7b4a
lea ecx, [ebp - 0x18]
call fcn.010f7d9f
lea ecx, [ebp - 8]
call fcn.010f9ec9
lea ecx, [ebp - 4]
call fcn.0103f4fa
lea ecx, [ebp - 0xc]
call fcn.0108dce8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20