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

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x24
mov eax, 0x4427fcfb
call fcn.4427ccc2
mov ecx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x14]
mov esi, dword [ebp + 0x74]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea eax, [ebp + 0x30]
push eax
call sym.dwutility.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_DwUtility::text::toNarrowString_unsigned_short_int_const___int__unsigned_int_
add esp, 0x10
push ebx
lea ecx, [ebp + 0x30]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.4422b073
pop ecx
pop ecx
mov dword [ebp + 0x20], eax
cmp eax, ebx
jne 0x442169dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.4427cc16
add ebp, 0x6c
leave
ret
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp + 0x2f], 1
mov dword [ebp + 0x24], ebx
test eax, eax
jbe 0x44216b90
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
push dword [ebp + 0x24]
mov ecx, esi
call fcn.442139a5
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x28], eax
cmp eax, 0xffffffff
je 0x44216b73
xor eax, eax
mov dword [ebp], ebx
lea edi, [ebp + 4]
push ebx
stosd dword es:[edi], eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
xor eax, eax
mov word [ebp + 0xc], ax
lea edi, [ebp + 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp + 0x18]
mov dword [ebp - 0x30], eax
movzx eax, word [ebp + 0x16]
mov dword [ebp - 0x2c], eax
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x28], eax
movzx eax, word [ebp + 0x12]
mov dword [ebp - 0x24], eax
movzx eax, word [ebp + 0xe]
mov dword [ebp - 0x20], eax
movzx eax, word [ebp + 0xc]
push 0x5c
push dword [ebp + 0x24]
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.442139a5
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x44216ab4
inc eax
inc eax
jmp 0x44216ac6
push dword [ebp + 0x24]
mov ecx, esi
call fcn.442139a5
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push ebx
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x4c]
push eax
call sym.dwutility.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_DwUtility::text::toNarrowString_unsigned_short_int_const___int__unsigned_int_
add esp, 0x10
push 0xffffffffffffffff
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp + 0x20]
call fcn.4422c168
add esp, 0x28
cmp eax, ebx
jne 0x44216b78
push ebx
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp + 8], eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x44216b78
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 8]
mov dword [ebp + 0x1c], ebx
push edi
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x20]
call fcn.4422b322
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x10
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp + 0x24]
cmp dword [ebp + 0x24], eax
jb 0x442169f7
jmp 0x44216b90
mov byte [ebp + 0x2f], bl
jmp 0x44216b90
push dword [ebp + 0x28]
mov byte [ebp + 0x2f], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
push dword [ebp + 0x20]
call fcn.4422bb9d
mov bl, byte [ebp + 0x2f]
pop ecx
pop ecx
jmp 0x442169b0