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

Disassembly:
push 0x5c
mov eax, 0x1030de8
call fcn.0102d2d6
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0xd]
stosb byte es:[edi], al
sub esp, 0x10
lea edi, [ebp - 0xe]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xd]
push eax
mov ebx, 0x100e85c
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x20d
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xe]
push eax
mov esi, 0x1002b10
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.01011355
xor eax, eax
lea edi, [ebp - 0xf]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
stosb byte es:[edi], al
call dword [sym.imp.msvcp60.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
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xf]
push eax
push 0x100e828
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x18
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
lea ecx, [ebp + 0xc]
call dword [sym.imp.msvcp60.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 - 0x18], eax
cmp eax, 0xffffffff
jne 0x1029a6a
xor eax, eax
lea edi, [ebp - 0xf]
stosb byte es:[edi], al
lea edi, [ebp - 0x10]
stosb byte es:[edi], al
push 0x1002cb8
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xf]
push eax
push 0x1002c84
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x21a
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x11]
push eax
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call fcn.010111d2
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
test eax, eax
jg 0x102996d
mov dword [ebp - 0x1c], eax
jmp 0x102997e
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x1029a6a
push 0x1002cb8
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c48
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x18
push dword [ebp - 0x20]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c18
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
mov esi, dword [ebp - 0x1c]
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.01010552
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.msvcp60.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
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x11]
push eax
push 0x100246c
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x18
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x11]
push eax
push 0x10023d8
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x14
push 0x103138c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push 0
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x1c]
push 0
shr eax, 1
push eax
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_int__unsigned_short_int__class_std::allocator_unsigned_short_int__const__]
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
call fcn.010110b2
mov eax, dword [eax + 8]
push 0
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x44]
mov edi, eax
call fcn.01011176
test edi, edi
jne 0x1029c1c
xor eax, eax
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
lea edi, [ebp - 0x10]
stosb byte es:[edi], al
push 0x100e798
sub esp, 0x10
lea edi, [ebp - 0xf]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c84
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 4], 8
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x226
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0xf]
push eax
push esi
mov byte [ebp - 4], 9
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 7
call fcn.010111d2
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, ebx
test ebx, ebx
jle 0x1029b5e
and esi, 0xffff
or esi, 0x80070000
test ebx, ebx
je 0x1029c1c
push 0x100e798
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c48
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x18
push ebx
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c18
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.01010552
mov ecx, eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.msvcp60.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
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x11]
push eax
push 0x100246c
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x68]
push eax
call fcn.010114c6
add esp, 0x18
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x30], esp
jmp 0x1029a3e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.01011422
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [ebp + 8]
call fcn.0102d387
ret 0x14