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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f9d8
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 0x5c44c0
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.005c43b0
cmp dword [0x6d3798], edi
jne 0x5c451e
mov eax, dword [0x6d3794]
cmp eax, edi
jne 0x5c44ea
push str.Urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x6d3794], eax
je 0x5c44fb
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6d3798], eax
cmp dword [0x6d3798], edi
jne 0x5c451e
cmp dword [0x6d378c], edi
jne 0x5c451e
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 0x5c454e
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 [0x6cd768]
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 0x5c47f9
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x5c47f9
mov eax, dword [0x6d3798]
cmp eax, esi
je 0x5c4675
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 0x5c4672
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x5c4672
xor bl, bl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.00603bec
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.005e7640
add esp, 8
test eax, eax
je 0x5c465b
mov ecx, dword [ebp - 0x14]
push 0x6a3f30
push ecx
call fcn.005e7640
add esp, 8
test eax, eax
je 0x5c465b
mov edx, dword [ebp - 0x14]
push str.text_html
push edx
call fcn.005e7640
add esp, 8
test eax, eax
je 0x5c465b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, 0x6d2270
call fcn.00431380
cmp eax, esi
je 0x5c4672
mov dword [ebp - 0x20], edi
jmp 0x5c4672
cmp dword [0x6d378c], esi
je 0x5c4672
mov bl, 1
jmp 0x5c4672
mov dword [ebp - 4], esi
cmp dword [0x6d378c], esi
je 0x5c47f9
test bl, bl
je 0x5c47f9
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 0x5c46c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5c4765
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
call fcn.005e9a70
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5c4765
jg 0x5c46e8
cmp eax, 0x100
jbe 0x5c4765
test edx, edx
jg 0x5c46fa
jl 0x5c46f5
cmp eax, 0x2710
jae 0x5c46fa
mov dword [ebp - 0x1c], eax
jmp 0x5c4701
mov dword [ebp - 0x1c], 0x2710
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005ffe3f
mov esi, eax
add esp, 4
test esi, esi
je 0x5c4765
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 0x5c475a
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5c475a
lea edx, [ebp - 0x3cc]
push edx
push 0
push eax
push esi
call dword [0x6d378c]
mov edi, eax
push esi
call fcn.005ffe68
add esp, 4
jmp 0x5c4781
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3cc]
push eax
push 0
lea edx, [ebp - 0x12c]
push ecx
push edx
call dword [0x6d378c]
mov edi, eax
cmp edi, 3
jne 0x5c4791
cmp dword [ebp - 0x1c], 0x1388
jb 0x5c47f9
jmp 0x5c479b
cmp edi, 1
je 0x5c479b
cmp edi, 2
jne 0x5c47f9
lea edi, [ebp - 0x29f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c47c7
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x29f]
push eax
push 0x6a10a0
push ecx
call fcn.005fc86b
add esp, 0xc
jmp 0x5c47f2
lea edi, [ebp - 0x303]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c47f9
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x303]
push edx
push eax
mov ecx, 0x6d2270
call fcn.00431380
test eax, eax
je 0x5c47f9
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.00603a3c
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