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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9c14
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100dc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
push 0
push 0
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x100533c0
call fcn.10015440
mov esi, eax
jmp 0x100535c5
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100533db
call fcn.10015440
mov esi, eax
jmp 0x100535c5
cmp dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
jl 0x100533f7
jg 0x100533ed
cmp eax, 0x100000
jbe 0x100533f7
mov esi, 0xe00e1001
jmp 0x100535c5
add eax, 2
push 0x100dd790
push eax
call fcn.1007bfcf
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x10053421
mov dword [ebp + 8], 0x8007000e
jmp 0x100535a6
mov eax, dword [ebp - 0x28]
add eax, 2
push eax
push 0
push esi
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005345c
call fcn.10015440
mov dword [ebp + 8], eax
jmp 0x100535a6
xor edi, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov al, byte [esi]
cmp al, 0xff
jne 0x10053479
cmp byte [esi + 1], 0xee
jne 0x10053479
lea ebx, [esi + 2]
jmp 0x1005356d
cmp al, 0xef
jne 0x100534fa
cmp byte [esi + 1], 0xbb
jne 0x100534fa
cmp byte [esi + 2], 0xbf
jne 0x100534fa
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 2
mul edx
push 0x100dd790
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007bfcf
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x100534bf
mov dword [ebp + 8], 0x8007000e
jmp 0x1005358a
mov eax, dword [ebp - 0x28]
add eax, eax
push eax
push 0
push edi
call fcn.1008b230
mov eax, dword [ebp - 0x28]
add esp, 0xc
push eax
push edi
add eax, 0xfffffffd
push eax
lea eax, [esi + 3]
push eax
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10053560
mov dword [ebp + 8], 0xe00e1001
jmp 0x1005358a
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x100dd790
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007bfcf
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x1005352e
mov dword [ebp + 8], 0x8007000e
jmp 0x1005358a
mov eax, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push 0
push edi
call fcn.1008b230
mov eax, dword [ebp - 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 0x10053560
call fcn.10015440
jmp 0x10053587
lea ecx, [ebp - 0x10]
call fcn.10020530
mov esi, dword [ebp - 0x10]
mov ebx, edi
lea ecx, [ebp - 0x14]
call fcn.100229c0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
push ebx
call fcn.100539e0
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
test edi, edi
je 0x100535a2
push edi
call fcn.1007bfd8
add esp, 4
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 4
test esi, esi
je 0x100535be
push esi
call fcn.1007bfd8
add esp, 4
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
je 0x100535d8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8