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

Disassembly:
push 0xffffffffffffffff
push 0x100a1a18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
push 0
push 0
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], 0
cmp edi, 0xffffffff
jne 0x10019ded
call fcn.10002c20
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10019e22
call fcn.10002c20
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x1c]
jl 0x10019e57
jg 0x10019e36
cmp eax, 0x100000
jbe 0x10019e57
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe00e1001
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
add eax, 2
push 0x100d61b4
push eax
call fcn.10057582
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
mov byte [esp + 0x34], 1
test esi, esi
jne 0x10019e98
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
mov ecx, dword [esp + 0x1c]
add ecx, 2
push ecx
push 0
push esi
call fcn.10059a00
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push esi
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10019ed7
call fcn.10002c20
mov edi, eax
jmp 0x1001a070
mov dword [esp + 0x10], 0
mov byte [esp + 0x34], 2
mov al, byte [esi]
cmp al, 0xff
jne 0x10019ef8
cmp byte [esi + 1], 0xee
jne 0x10019ef8
lea edi, [esi + 2]
jmp 0x1001a04b
cmp al, 0xef
jne 0x10019fe0
cmp byte [esi + 1], 0xbb
jne 0x10019fe0
cmp byte [esi + 2], 0xbf
jne 0x10019fe0
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x100d61b4
neg ecx
or ecx, eax
push ecx
call fcn.10057582
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x10019f75
lea esi, [esp + 0x10]
call fcn.1004b720
lea esi, [esp + 0x40]
call fcn.1004b720
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, 0x8007000e
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.10059a00
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
push edi
add eax, 0xfffffffd
push eax
add esi, 3
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1001a042
lea esi, [esp + 0x10]
call fcn.1004b720
lea esi, [esp + 0x40]
call fcn.1004b720
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, 0xe00e1001
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push 0x100d61b4
neg ecx
or ecx, eax
push ecx
call fcn.10057582
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x10019f40
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call fcn.10059a00
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
push edi
push eax
push esi
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1001a042
call fcn.10002c20
jmp 0x1001a065
lea esi, [esp + 0x40]
call fcn.1004b720
lea esi, [esp + 0x14]
call fcn.1001aac0
mov edx, dword [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x4c]
mov ecx, ebx
call fcn.1001a430
lea esi, [esp + 0x10]
mov edi, eax
call fcn.1004b720
lea esi, [esp + 0x40]
call fcn.1004b720
lea esi, [esp + 0x14]
call fcn.1000fcc0
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc