Function at 0x795e4e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
inc esi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0x80
call fcn.00795d6d
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1c], ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and dword [ebp - 4], esi
mov dword [ebp - 0xc], SysReAllocStringLen
je 0x795e99
mov dword [ebp - 0x18], esi
jmp 0x795ea0
mov dword [ebp - 0xc], 0xc0000000
test al, 2
je 0x795eaf
push 0
test al, 4
pop ecx
setne cl
inc ecx
jmp 0x795ebe
mov ecx, eax
and cl, 4
neg cl
sbb ecx, ecx
and ecx, 2
add ecx, 3
test al, 0x10
mov dword [ebp - 0x14], ecx
je 0x795ecc
mov dword [ebp - 8], 0x20000080
test al, 0x20
je 0x795ed4
or byte [ebp - 5], 8
mov ecx, dword [0xabbde4]
push dword [ebp + 8]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov dword [ebx + ecx + 8], eax
call fcn.00795d54
test byte [ebp + 0xc], 0x40
pop ecx
mov ecx, dword [0xabbde4]
mov byte [ebx + ecx + 1], al
jne 0x795f8c
push dword [ebp + 8]
call fcn.00795dec
test al, al
pop ecx
mov ecx, dword [0xabbde4]
je 0x795f8c
mov eax, dword [0x8e7bdc]
mov al, byte [eax]
sub al, 0x40
mov byte [ebx + ecx + 1], al
mov eax, dword [0x8e7bdc]
lea esi, [ebp - 0x120]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x795f2e
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x795f3d
lea edi, [ebp - 0x120]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x795f4d
push 0
push dword [ebp - 8]
mov ecx, eax
push dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0xabbde4]
mov dword [ebx + ecx + 4], eax
xor edi, edi
lea esi, [ebx + ecx]
cmp dword [esi + 4], 0xffffffff
jne 0x795fb8
push edi
push dword [ebp - 8]
lea esi, [ebx + ecx]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0xabbde4]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x796065
push edi
mov dword [esi + 0xc], 0x2000
push eax
lea esi, [ebx + ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
test al, 8
je 0x796043
cmp dword [ebp - 4], edi
jne 0x795ff3
mov eax, 0x8000004
mov dword [ebp - 4], 2
jmp 0x795fff
mov eax, 0x8000002
mov dword [ebp - 4], 4
push edi
push edi
push edi
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov ecx, dword [0xabbde4]
lea esi, [ebx + ecx]
mov dword [esi + 0x10], eax
je 0x796032
lea esi, [ebx + ecx]
push dword [esi + 0x1c]
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], edi
mov eax, dword [ebp + 0xc]
jne 0x79604e
and dword [esi + 8], 0xfffffff7
mov dword [ebp - 0x10], edi
jmp 0x79604e
and dword [esi + 8], 0xfffffff7
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0x10]
shr eax, 6
not eax
and eax, 1
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
not eax
mov dword [ecx], eax
jmp 0x79606b
mov dword [ebp - 0x10], edi
mov byte [esi], 0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret