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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f078
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 0x5c2470
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.005c2360
cmp dword [0x6f7778], edi
jne 0x5c24ce
mov eax, dword [0x6f7774]
cmp eax, edi
jne 0x5c249a
push str.Urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x6f7774], eax
je 0x5c24ab
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6f7778], eax
cmp dword [0x6f7778], edi
jne 0x5c24ce
cmp dword [0x6f776c], edi
jne 0x5c24ce
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 0x5c24fe
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 [0x6f175c]
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 0x5c27a9
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x5c27a9
mov eax, dword [0x6f7778]
cmp eax, esi
je 0x5c2625
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 0x5c2622
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x5c2622
xor bl, bl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.00601a7c
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.005e5520
add esp, 8
test eax, eax
je 0x5c260b
mov ecx, dword [ebp - 0x14]
push 0x6c7f28
push ecx
call fcn.005e5520
add esp, 8
test eax, eax
je 0x5c260b
mov edx, dword [ebp - 0x14]
push str.text_html
push edx
call fcn.005e5520
add esp, 8
test eax, eax
je 0x5c260b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, 0x6f6280
call fcn.00431020
cmp eax, esi
je 0x5c2622
mov dword [ebp - 0x20], edi
jmp 0x5c2622
cmp dword [0x6f776c], esi
je 0x5c2622
mov bl, 1
jmp 0x5c2622
mov dword [ebp - 4], esi
cmp dword [0x6f776c], esi
je 0x5c27a9
test bl, bl
je 0x5c27a9
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 0x5c2674
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5c2715
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5c2715
jg 0x5c2698
cmp eax, 0x100
jbe 0x5c2715
test edx, edx
jg 0x5c26aa
jl 0x5c26a5
cmp eax, 0x2710
jae 0x5c26aa
mov dword [ebp - 0x1c], eax
jmp 0x5c26b1
mov dword [ebp - 0x1c], 0x2710
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005fdccd
mov esi, eax
add esp, 4
test esi, esi
je 0x5c2715
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 0x5c270a
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5c270a
lea edx, [ebp - 0x3cc]
push edx
push 0
push eax
push esi
call dword [0x6f776c]
mov edi, eax
push esi
call fcn.005fdcf6
add esp, 4
jmp 0x5c2731
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3cc]
push eax
push 0
lea edx, [ebp - 0x12c]
push ecx
push edx
call dword [0x6f776c]
mov edi, eax
cmp edi, 3
jne 0x5c2741
cmp dword [ebp - 0x1c], 0x1388
jb 0x5c27a9
jmp 0x5c274b
cmp edi, 1
je 0x5c274b
cmp edi, 2
jne 0x5c27a9
lea edi, [ebp - 0x29f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c2777
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x29f]
push eax
push 0x6c5098
push ecx
call fcn.005fa6fb
add esp, 0xc
jmp 0x5c27a2
lea edi, [ebp - 0x303]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5c27a9
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x303]
push edx
push eax
mov ecx, 0x6f6280
call fcn.00431020
test eax, eax
je 0x5c27a9
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.006018cc
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