Function at 0x1006de40
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x1012c93b
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov eax, dword [esp + 0x388]
mov ebp, dword [esp + 0x38c]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x1006dea8
push eax
call fcn.100cf89b
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea esi, [esp + 0x1c]
call fcn.1006c860
mov esi, vtable.t_fileRead.0
mov dword [esp + 0x1c], esi
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x36c], edi
mov dword [esp + 0x370], edi
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ebp
mov dword [esp + 0x38c], edi
call fcn.1006c9a0
test al, al
je 0x1006df64
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006df17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x1006df17
xor esi, esi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x374], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006df45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x1006df45
xor esi, esi
lea ecx, [esi + 4]
push ecx
call fcn.100cf978
mov edi, eax
add esp, 4
test edi, edi
jne 0x1006dfd5
cmp byte [ebp + 0x11c], al
je 0x1006df8e
add ebp, 0xc
jmp 0x1006df91
mov dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.1006c8d0
xor al, al
jmp 0x1006e0ab
mov ebp, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
call fcn.100619a0
push 0x1014733c
mov esi, eax
push 0x1013c7e4
mov edx, esi
call fcn.10062cd0
add ebp, 4
push ebp
push 0x1013c7e4
mov edx, esi
call fcn.10062cd0
mov dword [esp + 0x390], 0xffffffff
add esp, 0x10
mov dword [esp + 0x1c], vtable.t_fileRead.0
jmp 0x1006df73
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
lea ecx, [esp + 0x374]
call fcn.1006e780
test al, al
jne 0x1006e01a
cmp byte [ebp + 0x11c], al
je 0x1006e007
mov ecx, dword [esp + 0x14]
add ebp, 0xc
call fcn.100619a0
push 0x10147188
jmp 0x1006df9f
mov ecx, dword [esp + 0x14]
mov ebp, dword [ebp + 8]
call fcn.100619a0
push 0x10147188
jmp 0x1006df9f
lea eax, [esp + 0x1c]
push eax
call fcn.1006cbc0
xor ecx, ecx
xor edx, edx
push esi
mov word [edi + esi + 2], cx
mov word [edi + esi], dx
mov esi, dword [esp + 0x18]
push esi
push ebx
mov ebx, edi
call fcn.1006e230
test al, al
jne 0x1006e082
cmp byte [ebp + 0x11c], al
je 0x1006e050
add ebp, 0xc
jmp 0x1006e053
mov ebp, dword [ebp + 8]
add ebp, 4
push ebp
push 0x10147188
mov ecx, esi
call fcn.10001360
mov ecx, eax
call fcn.100622f0
mov dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x1c], vtable.t_fileRead.0
jmp 0x1006df73
mov dword [esp + 0x380], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.1006c8d0
mov al, 1
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.100cf604
add esp, 0x370
ret 8