Function at 0x42f086
Capabilities:
Read file on windows

Disassembly:
push 0x130
mov eax, 0x431a7d
call fcn.00428df5
mov esi, dword [ebp + 8]
mov dword [ebp - 0xfc], ecx
call fcn.0042ea65
push 0x438fa0
push esi
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0xf8], esi
cmp esi, edi
je 0x42f448
push esi
push 1
lea eax, [ebp - 0x100]
push 2
push eax
mov dword [ebp - 0x100], edi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x42f0f1
mov eax, 0xfeff
cmp word [ebp - 0x100], ax
je 0x42f0fd
push edi
push edi
push esi
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x400
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::reserve_unsigned_int_]
push esi
call dword [sym.imp.MSVCR90.dll_feof]
pop ecx
test eax, eax
jne 0x42f413
jmp 0x42f138
xor edi, edi
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x48]
push edi
call dword [sym.imp.MSVCP90.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__::erase_unsigned_int__unsigned_int_]
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.MSVCR90.dll_fgetwc]
call esi
mov ebx, 0xffff
jmp 0x42f17c
cmp ax, 0xa
je 0x42f187
cmp ax, 0xd
je 0x42f174
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.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_wchar_t_]
push dword [ebp - 0xf8]
call esi
movzx eax, ax
pop ecx
mov ecx, ebx
cmp ax, cx
jne 0x42f15e
push edi
push 0x5b
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ebx, eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x48]
push 0x5d
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
push edi
push 0x3d
lea ecx, [ebp - 0x48]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
test ebx, ebx
jne 0x42f264
cmp esi, dword [eax]
je 0x42f264
cmp esi, 1
jbe 0x42f264
dec esi
push esi
push 1
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.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 - 0x120]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 0xf1], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
jae 0x42f22a
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x9c]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00415d5a
mov ecx, dword [ebp - 0xfc]
add esp, 0xc
lea eax, [ebp - 0xf1]
push eax
lea eax, [ebp - 0x9c]
push eax
add ecx, 4
call fcn.0042eb42
lea ecx, [ebp - 0x9c]
jmp 0x42f3f4
cmp edi, dword [eax]
je 0x42f3fe
cmp dword [ebp - 0x18], 0
je 0x42f3fe
push edi
push 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.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__::substr_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
inc edi
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.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__::substr_unsigned_int__unsigned_int_]
mov esi, dword [ebp - 0xfc]
cmp byte [esi + 0x3d], 0
mov byte [ebp - 4], 5
je 0x42f2fd
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x64]
push 0x23
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x42f2fd
push eax
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP90.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 - 0x13c]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 9
jae 0x42f339
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00415d5a
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x42f358
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0xb8]
push ecx
push dword [ebp - 0x6c]
push eax
call fcn.00415d5a
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 8
jae 0x42f377
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0xd4]
push ecx
push dword [ebp - 0x50]
push eax
call fcn.00415d5a
sub esp, 0x10
lea eax, [ebp - 0xd4]
mov ecx, esp
mov dword [ebp - 0x104], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xf0]
push eax
mov ecx, esi
call fcn.0042ec61
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0xf8]
call dword [sym.imp.MSVCR90.dll_feof]
pop ecx
test eax, eax
je 0x42f136
push dword [ebp - 0xf8]
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [ebp - 0xfc]
pop ecx
lea ecx, [ebp - 0x48]
mov byte [eax + 0x3c], 0
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x42f44a
xor al, al
call fcn.00428e78
ret 4