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

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x3a8
push 0xffffffffffffffff
push 0x63de48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x3b0]
mov eax, dword [ebp + 0x3b4]
mov dword [ebp - 0x30], eax
xor edi, edi
cmp esi, edi
jne 0x5b1828
xor eax, eax
jmp 0x5b1b77
call fcn.005aebe0
cmp dword [0x7110c8], edi
jne 0x5b1875
mov eax, dword [0x7110c4]
cmp eax, edi
jne 0x5b1854
push str.Urlmon.dll
call fcn.00445b00
add esp, 4
mov dword [0x7110c4], eax
cmp eax, edi
je 0x5b1865
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7110c8], eax
cmp dword [0x7110c8], edi
jne 0x5b1875
cmp dword [0x7110bc], edi
je 0x5b1821
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x5b1821
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x1c]
call fcn.004024e0
mov dword [ebp - 4], edi
mov ebx, 0x100
mov dword [ebp - 0x2c], ebx
push 0x101
push edi
lea ecx, [ebp + 0x2a0]
push ecx
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp - 0x18], edi
push edi
lea edx, [ebp - 0x18]
push edx
push ebx
lea eax, [ebp + 0x2a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x5b1b5b
cmp dword [ebp - 0x18], edi
jbe 0x5b1b5b
cmp dword [0x7110c8], edi
je 0x5b19e3
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
push edi
lea ecx, [ebp - 0x20]
push ecx
push edi
push edi
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp + 0x2a0]
push eax
push edi
push edi
call dword [0x7110c8]
cmp eax, edi
jne 0x5b19cc
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x5b19cc
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e2d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 4], 1
jmp 0x5b195f
push str.application_octet_stream
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005fa111
add esp, 8
test eax, eax
je 0x5b19c0
push str.text_plain
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005fa111
add esp, 8
test eax, eax
je 0x5b19c0
push str.text_html
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005fa111
add esp, 8
test eax, eax
je 0x5b19c0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x70f6a8
call fcn.0042f230
test eax, eax
je 0x5b19cc
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], edi
jmp 0x5b19e3
cmp dword [0x7110bc], edi
je 0x5b19cc
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], edi
jmp 0x5b19e3
cmp dword [0x7110bc], edi
je 0x5b1b5b
cmp byte [ebp - 0x11], 0
je 0x5b1b5b
push 0x2a0
push edi
lea ecx, [ebp]
push ecx
call fcn.005f8cb0
add esp, 0xc
mov byte [ebp], 1
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b1a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b1ac6
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005fd4d0
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5b1ac6
jg 0x5b1a52
cmp eax, 0x100
jbe 0x5b1ac6
test edx, edx
jg 0x5b1a63
jl 0x5b1a5f
cmp eax, 0x2710
jae 0x5b1a63
mov ebx, eax
jmp 0x5b1a68
mov ebx, 0x2710
push ebx
call fcn.005cfaa6
add esp, 4
mov esi, eax
test esi, esi
je 0x5b1ac6
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b1abb
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5b1abb
lea edx, [ebp]
push edx
push 0
push eax
push esi
call dword [0x7110bc]
mov edi, eax
push esi
call fcn.005cfa9b
add esp, 4
jmp 0x5b1adf
lea eax, [ebp]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp + 0x2a0]
push edx
call dword [0x7110bc]
mov edi, eax
cmp edi, 3
jne 0x5b1aee
cmp ebx, 0x1388
jb 0x5b1b5b
jmp 0x5b1af8
cmp edi, 1
je 0x5b1af8
cmp edi, 2
jne 0x5b1b5b
lea eax, [ebp + 0x12d]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b1b01
sub eax, edx
je 0x5b1b26
lea eax, [ebp + 0x12d]
push eax
push 0x64edec
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00402f60
add esp, 0xc
jmp 0x5b1b54
lea eax, [ebp + 0xc9]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b1b30
sub eax, edx
je 0x5b1b5b
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp + 0xc9]
push eax
mov ecx, 0x70f6a8
call fcn.0042f230
test eax, eax
je 0x5b1b5b
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402550
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x3a8
mov esp, ebp
pop ebp
ret