Function at 0x2e06f635
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.2e06e31c
movzx esi, word [ebp + 0xc]
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
xor ecx, ecx
inc ebx
mov edi, 0x2000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jne 0x2e06f673
mov ebx, 0x80004003
jmp 0x2e06f8a1
mov dword [eax], ecx
cmp dword [ebp + 8], ecx
je 0x2e06f669
push dword [ebp + 0xc]
call fcn.2e06d6d4
test eax, eax
jne 0x2e06f690
mov ebx, 0x80070057
jmp 0x2e06f8a1
test dword [ebp + 0xc], 0x10000
je 0x2e06f69e
mov edi, 0x4002100
test dword [ebp + 0xc], 0x40000
je 0x2e06f6a9
xor ebx, ebx
test dword [ebp + 0xc], 0x200000
je 0x2e06f6b5
or ebx, 4
cmp esi, 2
je 0x2e06f6c0
or edi, 0x40000000
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
call fcn.2e065115
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
test esi, esi
jne 0x2e06f6e9
mov ebx, 0x8007000e
jmp 0x2e06f8a1
push esi
call fcn.2e062237
lea ecx, [ebp - 0x10]
inc eax
push ecx
push eax
push esi
mov dword [ebp + 8], eax
call fcn.2e06ae60
test eax, eax
jne 0x2e06f70c
mov ebx, 0x80004005
jmp 0x2e06f8a1
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jbe 0x2e06f71e
mov ebx, 0x8000ffff
jmp 0x2e06f8a1
mov esi, dword [ebp - 0x14]
push 1
push 0
push edi
shl esi, 3
push dword [esi + 0x2e022c0c]
push 0
push ebx
push dword [esi + 0x2e022c08]
push dword [ebp - 0x2c]
call fcn.2e0621f7
push eax
lea ecx, [ebp - 4]
call fcn.2e06e5cd
cmp dword [ebp - 4], 0xffffffff
jne 0x2e06f7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x2e06f793
test ebx, ebx
je 0x2e06f793
push 1
push 0
push edi
push dword [esi + 0x2e022c0c]
or ebx, 2
push 0
push ebx
push dword [esi + 0x2e022c08]
push dword [ebp - 0x2c]
call fcn.2e0621f7
push eax
lea ecx, [ebp - 4]
call fcn.2e06e5cd
cmp dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc], 1
jne 0x2e06f7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x2e06f7a7
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jne 0x2e06f892
mov ebx, 0x8000ffff
jmp 0x2e06f892
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x2e06f7ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x2e06f7e0
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jne 0x2e06f892
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jg 0x2e06f7f8
jl 0x2e06f7b1
cmp dword [ebp - 0x1c], ebx
jb 0x2e06f7b1
push dword [ebp + 0x14]
push 0xa0
call fcn.2e06a9fd
pop ecx
pop ecx
cmp eax, ebx
je 0x2e06f819
push dword [ebp + 0x14]
mov ecx, eax
call fcn.2e06efec
mov esi, eax
jmp 0x2e06f81b
xor esi, esi
mov dword [ebp - 8], esi
cmp esi, ebx
jne 0x2e06f829
mov ebx, 0x8007000e
jmp 0x2e06f892
movzx eax, word [ebp + 0xc]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp - 0xc]
setne cl
shr edi, 0x1e
and edi, 1
test dword [ebp + 0xc], 0x20000
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], eax
jne 0x2e06f878
push 0xfa0
lea ecx, [esi + 0x40]
call fcn.2e06c77a
test eax, eax
je 0x2e06f822
lea eax, [esi + 0x98]
push eax
lea ecx, [ebp - 0x24]
call fcn.2e0b27f6
mov eax, dword [ebp + 0x10]
add esi, 8
mov dword [ebp - 8], ebx
mov dword [eax], esi
cmp dword [ebp - 4], 0xffffffff
je 0x2e06f8a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24]
call fcn.2e06e5f0
cmp dword [ebp - 8], 0
je 0x2e06f8b7
push dword [ebp - 8]
call fcn.2e06ba6d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10