Function at 0x100de8b9
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1026ca2c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x18c4
call fcn.1026ac00
mov eax, dword [0x10285008]
xor eax, esp
mov dword [esp + 0x18c0], eax
push ebx
push esi
push edi
mov eax, dword [0x10285008]
xor eax, esp
push eax
lea eax, [esp + 0x18d8]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
xor eax, eax
mov esi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x27c], ax
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], esi
jne 0x100dec84
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x4a4]
call fcn.10212454
test eax, eax
jne 0x100dee17
mov ebx, dword [esp + 0x14]
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x100dec27
push 0x100606d0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100dec27
lea ecx, [esp + 0x74]
call fcn.100d4b2d
and dword [esp + 0x18e0], esi
test ebx, ebx
je 0x100de9e5
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x80]
call fcn.100d4bf2
neg eax
sbb eax, eax
not eax
and dword [esp + 0x14], eax
jne 0x100de9d8
or dword [esp + 0x18e0], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.100b5ef7
mov eax, 0x8007000e
jmp 0x100dee17
cmp dword [esp + 0x7c], 1
sbb esi, esi
not esi
and esi, dword [esp + 0x74]
push 1
push ecx
push 0x20
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x50]
call fcn.100d4b93
mov byte [esp + 0x18e0], 4
test edi, edi
jne 0x100dea08
xor eax, eax
jmp 0x100dea52
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x4c]
call fcn.100d4bf2
neg eax
sbb eax, eax
not eax
and dword [esp + 0x14], eax
jne 0x100dea45
mov byte [esp + 0x18e0], 0
lea ecx, [esp + 0x40]
call fcn.100b5ef7
or dword [esp + 0x18e0], 0xffffffff
mov edi, 0x8007000e
jmp 0x100dea96
cmp dword [esp + 0x48], 1
sbb eax, eax
not eax
and eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push ecx
push 0x208
lea ecx, [esp + 0x4a4]
push ecx
push eax
mov ecx, esi
call fcn.102146a9
mov edi, eax
test edi, edi
je 0x100deaa6
push 0x100606e0
call fcn.100d3aab
pop ecx
mov byte [esp + 0x18e0], 0
lea ecx, [esp + 0x40]
call fcn.100b5ef7
or dword [esp + 0x18e0], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.100b5ef7
mov eax, edi
jmp 0x100dee17
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
mov ecx, 0x102cde80
lea ebx, [esp + 0x4a8]
call fcn.100b5c1c
push dword [esp + 0x1c]
mov eax, ebx
push eax
push 0x10060738
call fcn.100d3a67
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x208
lea eax, [esp + 0x10b4]
push eax
push 0x10060768
call fcn.102146a9
test eax, eax
jne 0x100debbe
lea eax, [esp + 0x34]
xor edi, edi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100deb24
mov edi, 0x800
cmp dword [esp + 0x34], edi
ja 0x100deb24
mov edi, dword [esp + 0x34]
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x100debb4
push 0
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x8b8]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100debb4
cmp dword [esp + 0x14], edi
jne 0x100debb4
xor eax, eax
mov word [esp + 0x10aa], ax
lea eax, [esp + 0x8ac]
push 0x10060774
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x100debb4
add eax, 0x1a
lea ecx, [esp + 0x10ac]
sub ecx, eax
sar ecx, 1
cmp ecx, 0x110
jbe 0x100deb9d
xor ecx, ecx
mov word [eax + 0x21e], cx
lea ecx, [esp + 0x27c]
push ecx
push 0x10060790
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x208
lea eax, [esp + 0x14c4]
mov ecx, esi
push eax
push 0x10060798
call fcn.102146a9
test eax, eax
jne 0x100debff
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.10171b2b
test eax, eax
je 0x100debff
push 0x100607a8
call fcn.100d3aab
pop ecx
mov byte [esp + 0x18e0], 0
lea ecx, [esp + 0x40]
call fcn.100b5ef7
or dword [esp + 0x18e0], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.100b5ef7
mov esi, dword [esp + 0x28]
jmp 0x100dec84
lea eax, [esp + 0x49c]
cmp ebx, eax
je 0x100dec84
push 0
push eax
push 0x208
push ebx
call dword [0x102a9c90]
test eax, eax
jne 0x100dec7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100dec56
mov esi, 0x80004005
jmp 0x100dec6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100dec6b
movzx esi, si
or esi, 0x80070000
push 0x10060810
call fcn.100d3aab
pop ecx
mov eax, esi
jmp 0x100dee17
lea ebx, [esp + 0x49c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.101e29f3
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
test eax, eax
js 0x100ded66
test edi, edi
je 0x100ded66
push 0x208
lea eax, [esp + 0x78]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
lea ecx, [esp + 0x80]
add esp, 0xc
mov esi, dword [eax + 0x238]
push 0x104
push ecx
mov ecx, esi
call dword [0x102dc578]
mov ecx, edi
call esi
test eax, eax
js 0x100ded0a
push 0x110
lea esi, [edi + 0x2d4]
mov edx, 0x1006085c
push 0xffffffffffffffff
mov ecx, esi
call fcn.102105bd
lea edx, [esp + 0x74]
jmp 0x100ded35
cmp word [esp + 0x27c], 0
je 0x100ded41
push 0x110
lea esi, [edi + 0x2d4]
mov edx, 0x1006085c
push 0xffffffffffffffff
mov ecx, esi
call fcn.102105bd
lea edx, [esp + 0x27c]
push 0x110
mov ecx, esi
call fcn.10210639
mov esi, dword [esp + 0x28]
test esi, esi
je 0x100ded71
lea eax, [esp + 0x24]
mov byte [edi + 0xe18], 1
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
lea ecx, [edi + 0xe04]
call fcn.100b5c1c
test esi, esi
je 0x100ded71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0
je 0x100dedc9
mov edi, 0x10060874
test ebx, ebx
jne 0x100ded83
mov ebx, edi
lea eax, [esp + 0x2c]
mov ecx, 0x102cdc60
push eax
push 0xffffffffffffffff
push ebx
call fcn.100b5c1c
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x100ded9f
mov esi, edi
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push ecx
mov ecx, ebx
call fcn.102107ba
push eax
mov ecx, ebx
call fcn.10210755
push eax
push esi
push 0x10060890
call fcn.100d3aab
add esp, 0x10
jmp 0x100dee15
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0xdf0]
call fcn.100b5c1c
push dword [ebp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.100de858
mov ebx, eax
test ebx, ebx
je 0x100dee08
test edi, edi
je 0x100dee15
mov edx, dword [edi]
push 1
mov esi, dword [edx]
mov ecx, esi
call dword [0x102dc578]
mov ecx, edi
call esi
jmp 0x100dee15
mov ecx, edi
call fcn.101e2edf
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, ebx
mov ecx, dword [esp + 0x18d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18c0]
xor ecx, esp
call fcn.10236010
mov esp, ebp
pop ebp
ret 0x14