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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6546e8
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 0x5e4710
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.005e4600
cmp dword [0x6fe004], edi
jne 0x5e4770
mov eax, dword [0x6fe000]
cmp eax, edi
jne 0x5e473c
push str.Urlmon.dll
call fcn.0044abc0
add esp, 4
cmp eax, edi
mov dword [0x6fe000], eax
je 0x5e474d
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6fe004], eax
cmp dword [0x6fe004], edi
jne 0x5e4770
cmp dword [0x6fdff8], edi
jne 0x5e4770
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 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x24], edx
jne 0x5e47a0
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 [0x6f7b78]
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 0x5e4a4b
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x5e4a4b
mov eax, dword [0x6fe004]
cmp eax, esi
je 0x5e48c7
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 0x5e48c4
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x5e48c4
xor bl, bl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.00622f3a
mov edx, dword [ebp - 0x28]
push edx
call dword [0x6fc3ec]
mov eax, dword [ebp - 0x14]
mov edi, 1
push str.application_octet_stream
push eax
mov dword [ebp - 4], edi
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e48ad
mov ecx, dword [ebp - 0x14]
push 0x6cc3d8
push ecx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e48ad
mov edx, dword [ebp - 0x14]
push str.text_html
push edx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e48ad
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, 0x6fc9a8
call fcn.00435fe0
cmp eax, esi
je 0x5e48c4
mov dword [ebp - 0x20], edi
jmp 0x5e48c4
cmp dword [0x6fdff8], esi
je 0x5e48c4
mov bl, 1
jmp 0x5e48c4
mov dword [ebp - 4], esi
cmp dword [0x6fdff8], esi
je 0x5e4a4b
test bl, bl
je 0x5e4a4b
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 0x5e4916
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5e49b7
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
call fcn.0060c730
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5e49b7
jg 0x5e493a
cmp eax, 0x100
jbe 0x5e49b7
test edx, edx
jg 0x5e494c
jl 0x5e4947
cmp eax, 0x2710
jae 0x5e494c
mov dword [ebp - 0x1c], eax
jmp 0x5e4953
mov dword [ebp - 0x1c], 0x2710
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00622acb
mov esi, eax
add esp, 4
test esi, esi
je 0x5e49b7
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 0x5e49ac
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5e49ac
lea edx, [ebp - 0x3cc]
push edx
push 0
push eax
push esi
call dword [0x6fdff8]
mov edi, eax
push esi
call fcn.00622af4
add esp, 4
jmp 0x5e49d3
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3cc]
push eax
push 0
lea edx, [ebp - 0x12c]
push ecx
push edx
call dword [0x6fdff8]
mov edi, eax
cmp edi, 3
jne 0x5e49e3
cmp dword [ebp - 0x1c], 0x1388
jb 0x5e4a4b
jmp 0x5e49ed
cmp edi, 1
je 0x5e49ed
cmp edi, 2
jne 0x5e4a4b
lea edi, [ebp - 0x29f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e4a19
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x29f]
push eax
push 0x6c910c
push ecx
call fcn.0061fae1
add esp, 0xc
jmp 0x5e4a44
lea edi, [ebp - 0x303]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e4a4b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x303]
push edx
push eax
mov ecx, 0x6fc9a8
call fcn.00435fe0
test eax, eax
je 0x5e4a4b
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.00622d8a
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