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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5360
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1028
call fcn.10195e10
mov eax, dword [0x10264190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1038], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call sym.URDHelp_x86.dll_public:_void___thiscall_CURDHelp::constructor_void_
mov dword [ebp - 0x1030], eax
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0x1030]
call fcn.10039750
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x101c], 0xffffffff
jne 0x100088b3
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
jmp 0x10008a03
push 0
mov edx, dword [ebp - 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jle 0x10008a03
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 2
push ecx
call fcn.1007b8b0
add esp, 4
mov dword [ebp - 0x1034], eax
mov edx, dword [ebp - 0x1034]
mov dword [ebp - 0x102c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x102c]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x100089fa
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov byte [ecx + edx + 1], 0
mov dword [ebp - 0x1020], 0
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x101c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1028], eax
cmp dword [ebp - 0x1028], 0
je 0x100089ee
cmp dword [ebp - 0x1018], 0
je 0x100089ee
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x1020]
jne 0x10008981
jmp 0x100089ee
mov ecx, dword [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1014]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x1020]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, dword [ebp - 0x1020]
push eax
call fcn.1019111c
add esp, 0x10
mov ecx, dword [ebp - 0x1020]
add ecx, dword [ebp - 0x1018]
mov dword [ebp - 0x1020], ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x101c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1028], eax
jmp 0x1000895c
mov dword [ebp - 0x1024], 1
jmp 0x10008a03
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x10008a0b
mov dword [ebp - 4], 0xffffffff
jmp 0x10008a1b
cmp dword [ebp - 0x101c], 0
je 0x10008a31
mov eax, dword [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019110d
mov esp, ebp
pop ebp
ret 0xc