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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10018b6b
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.1000f160
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1040]
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 0x14]
call fcn.10004b00
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x1038], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
xor ebx, ebx
call fcn.1000ea80
test eax, eax
jne 0x10001859
lea ecx, [esp + 0x10]
mov dword [esp + 0x1038], 0xffffffff
call fcn.1000d8c0
mov eax, 1
jmp 0x10001a8c
push edi
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
jne 0x10001893
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], esi
call fcn.1000d8c0
mov eax, 1
jmp 0x10001a8b
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x30], eax
call fcn.10001280
test eax, eax
jne 0x100018ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], esi
call fcn.1000d8c0
mov eax, 7
jmp 0x10001a8b
mov eax, dword [esp + 0x1048]
cmp eax, ebp
jne 0x100018fa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], esi
call fcn.1000d8c0
mov eax, 5
jmp 0x10001a8b
mov ecx, dword [esp + 0x10]
push 1
push 0x40000000
push eax
call fcn.10001120
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x1000194c
mov ecx, dword [esp + 0x10]
call fcn.100011e0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], 0xffffffff
call fcn.1000d8c0
cmp esi, 0x50
jne 0x10001a40
mov eax, 2
jmp 0x10001a8b
push ebp
lea eax, [esp + 0x20]
push eax
push 0x1000
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001a52
jmp 0x10001970
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x10001a18
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp eax, ebp
je 0x10001a2c
mov ecx, dword [str.CeWriteFile]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x10001a2c
push ebp
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x3c]
push ecx
push edx
call eax
cmp eax, ebp
je 0x10001a2c
mov ecx, dword [esp + 0x1050]
cmp ecx, ebp
je 0x100019e0
add ebx, dword [esp + 0x24]
mov eax, 0x51eb851f
mul dword [esp + 0x2c]
mov esi, edx
xor edx, edx
shr esi, 5
mov eax, ebx
div esi
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x104c]
cmp eax, ebp
je 0x100019f7
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001a47
push ebp
lea eax, [esp + 0x20]
push eax
push 0x1000
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001970
jmp 0x10001a4f
mov eax, dword [esp + 0x1050]
cmp eax, ebp
je 0x10001a4f
push 0x64
call eax
add esp, 4
jmp 0x10001a4f
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], 0xffffffff
call fcn.1000d8c0
mov eax, 4
jmp 0x10001a8b
mov dword [esp + 0x28], 1
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push edx
call fcn.10001200
cmp dword [esp + 0x28], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x103c], esi
je 0x10001a84
call fcn.1000d8c0
mov eax, 6
jmp 0x10001a8b
call fcn.1000d8c0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1030]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1030
ret 0x10