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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c52f0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9c
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 - 0x88], ecx
cmp dword [ebp + 0x10], 0
jne 0x100081eb
push 0x10214d33
mov ecx, dword [ebp + 0xc]
call fcn.10018af0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 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 - 0x5c], eax
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0x5c]
call fcn.10039750
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x100082a8
push 0x10216630
push 0
push 3
lea eax, [ebp - 0xa0]
push eax
call fcn.10009d30
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x70], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x6c], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.100053a0
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x48]
push edx
push str._tasp::library_CreateFile__s_err_lu.
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov edx, dword [ebp - 0x70]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
mov dword [ebp - 0x20], 0
jmp 0x100084e1
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 3
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10008343
push 0x102166b0
push 0
push 3
lea eax, [ebp - 0x94]
push eax
call fcn.10009d30
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x7c], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.100053a0
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x64]
push edx
push str._tasp::library_ReadFile__s_err_lu.
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
mov edx, dword [ebp - 0x80]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 8], ecx
call fcn.10008d70
add esp, 0x18
cmp dword [ebp - 0x1c], 3
jne 0x10008421
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x18]
cmp ecx, 0xef
jne 0x1000838f
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x18]
cmp eax, 0xbb
jne 0x1000838f
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x18]
cmp edx, 0xbf
jne 0x1000838f
jmp 0x1000841f
push 0x10216778
push 2
push 1
lea eax, [ebp - 0xac]
push eax
call fcn.10009d30
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x54], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x50], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.100053a0
mov dword [ebp - 0x60], eax
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x18]
push eax
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x18]
push edx
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x18]
push edx
mov eax, dword [ebp - 0x60]
push eax
push str._tasp::library__s_not_utf8_flag_b00x_x_b10x_x_b20x_x.
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x58]
mov dword [ecx], edx
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
call fcn.10008d70
add esp, 0x20
mov dword [ebp - 0x2c], 0
jmp 0x10008428
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x2c], 0
je 0x10008440
mov eax, dword [ebp - 0x34]
sub eax, 3
mov dword [ebp - 0x28], eax
jmp 0x10008459
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100390d0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.1007b8b0
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100084e1
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100084b3
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jne 0x100084b3
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.100390d0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.1007b8b9
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x100084d4
mov dword [ebp - 0x44], 0
jmp 0x100084e1
mov dword [ebp - 0x24], 0x8123
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x44], ecx
jmp 0x100084e9
mov dword [ebp - 4], 0xffffffff
jmp 0x100084f9
cmp dword [ebp - 0x20], 0
je 0x10008509
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
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