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

Disassembly:
push 0xffffffffffffffff
push 0x100ad778
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100de040]
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 connect
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 0x1005319d
call fcn.10002d30
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 0x100531d2
call fcn.10002d30
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 0x10053207
jg 0x100531e6
cmp eax, 0x100000
jbe 0x10053207
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 0x100e33b4
push eax
call fcn.100628bb
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
mov byte [esp + 0x34], 1
test esi, esi
jne 0x10053248
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.10064e10
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 0x10053287
call fcn.10002d30
mov edi, eax
jmp 0x10053420
mov dword [esp + 0x10], 0
mov byte [esp + 0x34], 2
mov al, byte [esi]
cmp al, 0xff
jne 0x100532a8
cmp byte [esi + 1], 0xee
jne 0x100532a8
lea edi, [esi + 2]
jmp 0x100533fb
cmp al, 0xef
jne 0x10053390
cmp byte [esi + 1], 0xbb
jne 0x10053390
cmp byte [esi + 2], 0xbf
jne 0x10053390
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x100e33b4
neg ecx
or ecx, eax
push ecx
call fcn.100628bb
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x10053325
lea esi, [esp + 0x10]
call fcn.10008990
lea esi, [esp + 0x40]
call fcn.10008990
lea esi, [esp + 0x14]
call fcn.1000fee0
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.10064e10
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 0x100533f2
lea esi, [esp + 0x10]
call fcn.10008990
lea esi, [esp + 0x40]
call fcn.10008990
lea esi, [esp + 0x14]
call fcn.1000fee0
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 0x100e33b4
neg ecx
or ecx, eax
push ecx
call fcn.100628bb
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
je 0x100532f0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call fcn.10064e10
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 0x100533f2
call fcn.10002d30
jmp 0x10053415
lea esi, [esp + 0x40]
call fcn.10008990
lea esi, [esp + 0x14]
call fcn.1001a0f0
mov edx, dword [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x4c]
mov ecx, ebx
call fcn.100537e0
lea esi, [esp + 0x10]
mov edi, eax
call fcn.10008990
lea esi, [esp + 0x40]
call fcn.10008990
lea esi, [esp + 0x14]
call fcn.1000fee0
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