Function at 0x41a750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0b10
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
test esi, esi
je 0x41a8cd
mov edi, dword [ebp + 0xc]
cmp edi, 0xfde9
je 0x41a8bf
cmp edi, 0xfde8
je 0x41a8bf
cmp esi, 0xffffffff
jne 0x41a7fb
push 0x19
call fcn.004cdcdf
mov esi, eax
add esp, 4
test esi, esi
je 0x41a8db
mov ecx, str.application_octet_stream
mov edx, esi
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41a7d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x100
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
test eax, eax
je 0x41a8e2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
cmp eax, 0xffffffff
je 0x41a8f3
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push 0
push 0
push dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push eax
push 0
push 0
call dword [sym.imp.urlmon.dll_FindMimeFromData]
test eax, eax
je 0x41a896
push 0x19
call fcn.004cdcdf
mov esi, eax
add esp, 4
test esi, esi
je 0x41a904
mov ecx, str.application_octet_stream
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41a884
jmp 0x41a7dd
mov dword [ebp - 4], 0
push edi
push dword [ebp - 0x118]
call sym.R2ClientInstall.exe_public:_static_char____cdecl_Ryeol::CHttpToolW::Unicode2Ansi_wchar_t_const___unsigned_int_
add esp, 8
mov esi, eax
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x41a7dd
push 0
push 0
push str.CHttpToolW::GetMimeType:_CP_UTF8_and_CP_UTF7_can_not_be_used_for_the_CodePage_parameter.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0
push 0
push str.CHttpToolW::GetMimeType:_hFile_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0x66
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25a
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25c
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
push 0x66
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int_
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push 0
call fcn.004c78f8
int3