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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023b50c
mov eax, dword fs:[0]
push eax
sub esp, 0x76c
mov eax, dword [0x102ec100]
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.1007b790
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.10083ba0
lea ecx, [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.10088b90
mov byte [ebp - 4], 1
mov dword [ebp - 0x72c], 0
mov dword [ebp - 0x730], 0
call fcn.1007e8d0
push eax
lea ecx, [ebp - 0x94]
call fcn.10088b90
mov byte [ebp - 4], 2
call fcn.1007e8e0
mov ecx, eax
call fcn.10089d70
movzx edx, al
test edx, edx
je 0x100a9219
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.10089230
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.10089040
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0xffffffff
jne 0x100a913f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
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 0x100a9171
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
mov dword [ebp - 0x744], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.101239b7
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 0x100a9214
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x75c], ecx
mov edx, dword [ebp - 0x75c]
push edx
call fcn.10123637
add esp, 4
mov dword [ebp - 0x72c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
jmp 0x100a949b
call fcn.1007e8e0
push eax
lea ecx, [ebp - 0x94]
call fcn.10089230
mov dword [ebp - 0x734], 0
call fcn.1007ecd0
movzx eax, al
test eax, eax
je 0x100a9250
call fcn.1007e8f0
mov dword [ebp - 0x734], eax
jmp 0x100a92d5
call fcn.1007e900
push eax
lea ecx, [ebp - 0x220]
call fcn.10088b90
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.10089040
push eax
call fcn.10087620
add esp, 8
mov dword [ebp - 0x740], eax
mov ecx, dword [ebp - 0x740]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10089040
push eax
call fcn.10092f10
add esp, 8
mov dword [ebp - 0x734], eax
cmp dword [ebp - 0x740], 0
je 0x100a92c6
mov edx, dword [ebp - 0x740]
mov dword [ebp - 0x760], edx
mov eax, dword [ebp - 0x760]
push eax
call fcn.10123637
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.10088de0
cmp dword [ebp - 0x734], 0
jne 0x100a92f2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
mov dword [ebp - 0x748], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.10088b90
mov byte [ebp - 4], 4
push 0x10244e40
push 0x102d0004
lea ecx, [ebp - 0x118]
call fcn.1008a120
lea edx, [ebp - 0x728]
push edx
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.10089040
push eax
mov ecx, dword [ebp - 0x734]
push ecx
call fcn.10092220
add esp, 0x14
test eax, eax
je 0x100a9379
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10088de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x730], edx
cmp dword [ebp - 0x730], 0
jne 0x100a93b1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10088de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
mov eax, dword [ebp - 0x730]
push eax
call fcn.101239b7
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.10093770
add esp, 0x10
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0x100a9471
cmp dword [ebp - 0x74c], 0x600
je 0x100a9471
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.10123637
add esp, 4
mov dword [ebp - 0x72c], 0
call fcn.1007ecd0
movzx edx, al
test edx, edx
jne 0x100a9451
mov eax, dword [ebp - 0x734]
push eax
call fcn.10091e60
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10088de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
jmp 0x100a94b2
call fcn.1007ecd0
movzx ecx, al
test ecx, ecx
jne 0x100a948c
mov edx, dword [ebp - 0x734]
push edx
call fcn.10091e60
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.10088de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.10088de0
xor eax, eax
jne 0x100a90ba
cmp dword [ebp - 0x72c], 0
jne 0x100a95b0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.10089040
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp dword [ebp - 0x73c], 0xffffffff
jne 0x100a94f7
jmp 0x100a95b0
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 0x100a951a
jmp 0x100a95b0
mov dword [ebp - 0x750], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.101239b7
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 0x100a95a9
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x770], ecx
mov edx, dword [ebp - 0x770]
push edx
call fcn.10123637
add esp, 4
mov dword [ebp - 0x72c], 0
jmp 0x100a95b0
mov dword [ebp - 0x754], 0
cmp dword [ebp - 0x72c], 0
je 0x100a9604
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x72c]
push ecx
call fcn.100a8fa0
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.10123637
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.10088de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.1007bec0
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.10123194
mov esp, ebp
pop ebp
ret