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

Disassembly:
mov eax, 0x446ff9
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 3
push ebx
mov edi, 0x10000000
push 3
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
call esi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
mov dword [ebp - 4], 1
jne 0x427d95
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 3
push ebx
push 3
push edi
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x427d95
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x427d6c
xor edi, edi
cmp dword [ebp - 0x10], 0xffffffff
je 0x427de1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x427de1
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x427de1
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push ebx
push eax
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [edi + esi], bl
xor esi, esi
cmp edi, ebx
je 0x427e3f
push ebx
push ebx
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jle 0x427e3f
inc eax
add eax, eax
push eax
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x427e3f
push dword [ebp - 0x14]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
inc eax
push eax
push esi
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 0xc]
mov word [esi + eax*2], bx
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x45d0f4
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push 0x45d0f4
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
cmp esi, ebx
mov byte [ebp - 4], 2
je 0x427e85
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
cmp edi, ebx
je 0x427e90
push edi
call fcn.0042c9ee
pop ecx
cmp esi, ebx
je 0x427e9b
push esi
call fcn.0042c9ee
pop ecx
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push ebx
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, esi
push dword [eax]
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
pop eax
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x10], 0xffffffff
je 0x427ee2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8