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

Disassembly:
push 0x188
mov eax, 0x49e179
call fcn.0049cbc1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
push 0xa
xor eax, eax
mov esi, ecx
pop ecx
lea edi, [ebp - 0xec]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xbc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
push 3
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x8c], 0x80004005
stosd dword es:[edi], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
xor ebx, ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.004868c6
cmp dword [esi + 0x18], 8
mov dword [ebp - 0xa0], ebx
jb 0x4815dd
mov esi, dword [esi + 4]
jmp 0x4815e0
add esi, 4
push ebx
push 0x80
push 3
push ebx
push 7
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x90], eax
jne 0x481621
mov esi, 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov eax, esi
call fcn.0049cc44
ret 4
mov esi, dword [ebp - 0xa4]
add esi, 8
push esi
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4818aa
mov edi, dword [esi + 4]
cmp edi, ebx
mov eax, dword [esi]
mov dword [ebp - 0x9c], eax
jg 0x481679
jl 0x481657
cmp eax, 0x1400000
jae 0x481679
mov dword [ebp - 0x94], 1
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xbc], eax
push eax
jmp 0x4816fb
push ebx
push 2
mov esi, 0x100000
push edi
push eax
mov dword [ebp - 0x94], 5
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xdc], 0x200000
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xb4], esi
call fcn.0049cd20
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x9c]
sub eax, esi
sbb edi, ebx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xac], esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x88], eax
je 0x4818aa
lea eax, [ebp - 0x84]
call fcn.004868c6
xor edi, edi
cmp dword [ebp - 0x94], ebx
jle 0x4817a2
lea eax, [ebp - 0xec]
mov dword [ebp - 0x98], eax
jmp 0x48173a
mov eax, dword [ebp - 0x98]
push ebx
push ebx
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x481896
mov esi, dword [ebp + edi*4 - 0xbc]
push ebx
lea eax, [ebp - 0xa0]
push eax
push esi
push dword [ebp - 0x88]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x481896
push dword [ebp - 0x88]
mov eax, esi
lea esi, [ebp - 0x84]
call fcn.004868ed
add dword [ebp - 0x98], 8
inc edi
cmp edi, dword [ebp - 0x94]
jl 0x481734
cmp byte [ebp - 0x1c], bl
jne 0x4817b6
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x1c], 1
call fcn.00486988
mov eax, dword [ebp - 0xa4]
xor edi, edi
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x4ab8a8
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0xa8]
push 2
push eax
call dword [sym.imp.MSVCP80.dll_struct_std::_Smanip_int____cdecl_std::setw_int_]
pop ecx
pop ecx
push 0x4818c1
push 0x44c322
lea ecx, [ebp - 0x18c]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, esi
mov esi, eax
call fcn.0043a71a
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add edx, eax
mov word [edx + 0x30], 0x30
movzx ecx, byte [ebp + edi - 0x2c]
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x194]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
inc edi
cmp edi, 0x10
jl 0x4817c7
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x88], ebx
je 0x4818aa
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x8c]
jmp 0x481607