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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp esi, edi
jne 0x5c36a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005c3590
cmp dword [0x6d2730], edi
jne 0x5c36fe
mov eax, dword [0x6d272c]
cmp eax, edi
jne 0x5c36ca
push str.Urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x6d272c], eax
je 0x5c36db
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6d2730], eax
cmp dword [0x6d2730], edi
jne 0x5c36fe
cmp dword [0x6d2724], edi
jne 0x5c36fe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push 3
push edi
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x24], edx
jne 0x5c372e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6cc708]
mov bl, 1
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
push esi
push ecx
lea eax, [ebp - 0x12c]
push 0x100
push eax
push edx
mov dword [ebp - 0x1c], 0x100
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x5c39d9
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x5c39d9
mov eax, dword [0x6d2730]
cmp eax, esi
je 0x5c3855
lea edx, [ebp - 0x28]
push esi
push edx
push esi
push esi
push ecx
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
push ecx
push esi
push esi
mov dword [ebp - 0x28], esi
call eax
cmp eax, esi
jne 0x5c3852
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x5c3852
xor bl, bl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.00602c86
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
mov edi, 1
push str.application_octet_stream
push eax
mov dword [ebp - 4], edi
call fcn.005e6820
add esp, 8
test eax, eax
je 0x5c383b
mov ecx, dword [ebp - 0x14]
push 0x6a2f30
push ecx
call fcn.005e6820
add esp, 8
test eax, eax
je 0x5c383b
mov edx, dword [ebp - 0x14]
push str.text_html
push edx
call fcn.005e6820
add esp, 8
test eax, eax
je 0x5c383b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, 0x6d1210
call fcn.00430fe0
cmp eax, esi
je 0x5c3852
mov dword [ebp - 0x20], edi
jmp 0x5c3852
cmp dword [0x6d2724], esi
je 0x5c3852
mov bl, 1
jmp 0x5c3852
mov dword [ebp - 4], esi
cmp dword [0x6d2724], esi
je 0x5c39d9
test bl, bl
je 0x5c39d9
mov ecx, 0xa8
xor eax, eax
lea edi, [ebp - 0x3cc]
lea edx, [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
push edx
push eax
mov byte [ebp - 0x3cc], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c38a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5c3945
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
call fcn.005e8c50
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5c3945
jg 0x5c38c8
cmp eax, 0x100
jbe 0x5c3945
test edx, edx
jg 0x5c38da
jl 0x5c38d5
cmp eax, 0x2710
jae 0x5c38da
mov dword [ebp - 0x1c], eax
jmp 0x5c38e1
mov dword [ebp - 0x1c], 0x2710
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005feedc
mov esi, eax
add esp, 4
test esi, esi
je 0x5c3945
mov ebx, dword [ebp - 0x24]
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c393a
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5c393a
lea edx, [ebp - 0x3cc]
push edx
push 0
push eax
push esi
call dword [0x6d2724]
mov edi, eax
push esi
call fcn.005fef05
add esp, 4
jmp 0x5c3961
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3cc]
push eax
push 0
lea edx, [ebp - 0x12c]
push ecx
push edx
call dword [0x6d2724]
mov edi, eax
cmp edi, 3
jne 0x5c3971
cmp dword [ebp - 0x1c], 0x1388
jb 0x5c39d9
jmp 0x5c397b
cmp edi, 1
je 0x5c397b
cmp edi, 2
jne 0x5c39d9
lea edi, [ebp - 0x29f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c39a7
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x29f]
push eax
push 0x6a00a0
push ecx
call fcn.005fb90b
add esp, 0xc
jmp 0x5c39d2
lea edi, [ebp - 0x303]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c39d9
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x303]
push edx
push eax
mov ecx, 0x6d1210
call fcn.00430fe0
test eax, eax
je 0x5c39d9
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00602ad6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret