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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021aaec
mov eax, dword fs:[0]
push eax
sub esp, 0x76c
mov eax, dword [0x102c6100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x4f8]
call fcn.100740b0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.1007c4c0
lea ecx, [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.100814b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x72c], 0
mov dword [ebp - 0x730], 0
call fcn.100771f0
push eax
lea ecx, [ebp - 0x94]
call fcn.100814b0
mov byte [ebp - 4], 2
call fcn.10077200
mov ecx, eax
call fcn.10082690
movzx edx, al
test edx, edx
je 0x100a1b29
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.10081b50
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.10081960
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0xffffffff
jne 0x100a1a4f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
push 0
mov ecx, dword [ebp - 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x100a1a81
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
mov dword [ebp - 0x744], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.10106ef2
add esp, 4
mov dword [ebp - 0x758], eax
mov eax, dword [ebp - 0x758]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x744]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x738]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x744]
cmp eax, dword [ebp - 0x730]
je 0x100a1b24
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x75c], ecx
mov edx, dword [ebp - 0x75c]
push edx
call fcn.10106975
add esp, 4
mov dword [ebp - 0x72c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
jmp 0x100a1dab
call fcn.10077200
push eax
lea ecx, [ebp - 0x94]
call fcn.10081b50
mov dword [ebp - 0x734], 0
call fcn.100775f0
movzx eax, al
test eax, eax
je 0x100a1b60
call fcn.10077210
mov dword [ebp - 0x734], eax
jmp 0x100a1be5
call fcn.10077220
push eax
lea ecx, [ebp - 0x220]
call fcn.100814b0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.10081960
push eax
call fcn.1007ff40
add esp, 8
mov dword [ebp - 0x740], eax
mov ecx, dword [ebp - 0x740]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10081960
push eax
call fcn.1008b830
add esp, 8
mov dword [ebp - 0x734], eax
cmp dword [ebp - 0x740], 0
je 0x100a1bd6
mov edx, dword [ebp - 0x740]
mov dword [ebp - 0x760], edx
mov eax, dword [ebp - 0x760]
push eax
call fcn.10106975
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.10081700
cmp dword [ebp - 0x734], 0
jne 0x100a1c02
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
mov dword [ebp - 0x748], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.100814b0
mov byte [ebp - 4], 4
push 0x10222c94
push 0x102ad234
lea ecx, [ebp - 0x118]
call fcn.10082a40
lea edx, [ebp - 0x728]
push edx
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.10081960
push eax
mov ecx, dword [ebp - 0x734]
push ecx
call fcn.1008ab40
add esp, 0x14
test eax, eax
je 0x100a1c89
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10081700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x730], edx
cmp dword [ebp - 0x730], 0
jne 0x100a1cc1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10081700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
mov eax, dword [ebp - 0x730]
push eax
call fcn.10106ef2
add esp, 4
mov dword [ebp - 0x764], eax
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x72c], ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x748]
push ecx
mov edx, dword [ebp - 0x734]
push edx
call fcn.1008c090
add esp, 0x10
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0x100a1d81
cmp dword [ebp - 0x74c], 0x600
je 0x100a1d81
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.10106975
add esp, 4
mov dword [ebp - 0x72c], 0
call fcn.100775f0
movzx edx, al
test edx, edx
jne 0x100a1d61
mov eax, dword [ebp - 0x734]
push eax
call fcn.1008a780
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10081700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
jmp 0x100a1dc2
call fcn.100775f0
movzx ecx, al
test ecx, ecx
jne 0x100a1d9c
mov edx, dword [ebp - 0x734]
push edx
call fcn.1008a780
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10081700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10081700
xor eax, eax
jne 0x100a19ca
cmp dword [ebp - 0x72c], 0
jne 0x100a1ec0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.10081960
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp dword [ebp - 0x73c], 0xffffffff
jne 0x100a1e07
jmp 0x100a1ec0
push 0
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x100a1e2a
jmp 0x100a1ec0
mov dword [ebp - 0x750], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.10106ef2
add esp, 4
mov dword [ebp - 0x76c], eax
mov eax, dword [ebp - 0x76c]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x750]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x73c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x750]
cmp eax, dword [ebp - 0x730]
je 0x100a1eb9
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x770], ecx
mov edx, dword [ebp - 0x770]
push edx
call fcn.10106975
add esp, 4
mov dword [ebp - 0x72c], 0
jmp 0x100a1ec0
mov dword [ebp - 0x754], 0
cmp dword [ebp - 0x72c], 0
je 0x100a1f14
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x72c]
push ecx
call fcn.100a18b0
add esp, 8
mov dword [ebp - 0x754], eax
mov edx, dword [ebp - 0x72c]
mov dword [ebp - 0x774], edx
mov eax, dword [ebp - 0x774]
push eax
call fcn.10106975
add esp, 4
mov dword [ebp - 0x72c], 0
mov ecx, dword [ebp - 0x754]
mov dword [ebp - 0x778], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x19c]
call fcn.10081700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.100747e0
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101064d2
mov esp, ebp
pop ebp
ret