Function at 0x4362c0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4499fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov al, byte [esp + 2]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], al
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0xac]
mov dword [esp + 0xa0], 1
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4363d1
push 0x64
push str.::Open_File_...
lea ecx, [esp + 0x60]
mov dword [0x45c6b0], edi
call fcn.00407ee0
mov bl, 2
xor ebp, ebp
mov byte [esp + 0xa0], bl
lea ecx, [esp + 0x12]
push ecx
push 0x45a4f0
lea ecx, [esp + 0x40]
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 edx, [esp + 0x13]
lea ecx, [esp + 0x28]
push edx
push esi
mov byte [esp + 0xa8], 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__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00407e00
add esp, 8
lea ecx, [esp + 0x28]
mov edi, eax
push 1
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 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], bl
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_]
test edi, edi
jne 0x4363b8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x58]
call fcn.00407e40
inc ebp
cmp ebp, 0x64
jl 0x43633e
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.00408fc0
test edi, edi
jne 0x4364fe
mov dl, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
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 str.Cant_open_rb
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push str.Cant_open_rb
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_]
lea eax, [esp + 0x28]
push esi
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0xac], 4
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov bl, 5
cmp eax, edi
mov byte [esp + 0xa0], bl
jne 0x436432
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x13]
lea ecx, [esp + 0x38]
push edx
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_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [esp + 0x38]
mov byte [esp + 0xa0], 6
push eax
call fcn.00406940
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0xa0], bl
push 1
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 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa4], 4
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 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 1
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 ebp, dword [esp + 0xa8]
mov cl, byte [esp + 0x14]
mov byte [ebp], cl
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jne 0x4364ac
xor eax, eax
jmp 0x4364b2
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp eax, edi
jge 0x4364b8
xor eax, eax
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, ecx
mov dword [ebp + 4], eax
mov ebx, ecx
mov edi, eax
je 0x4364e8
push esi
push edi
call fcn.00428ef0
add esp, 8
inc edi
inc esi
cmp esi, ebx
jne 0x4364d4
mov esi, dword [esp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, ebp
jmp 0x4365e9
push esi
lea ecx, [esp + 0x5c]
call fcn.00409cf0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x12], 0
jne 0x43651d
xor ecx, ecx
jmp 0x436521
mov ecx, edx
sub ecx, eax
mov esi, dword [esp + 0x78]
cmp ecx, esi
jae 0x43654b
test eax, eax
jne 0x436531
xor ecx, ecx
jmp 0x436535
mov ecx, edx
sub ecx, eax
lea eax, [esp + 0x12]
push eax
mov eax, esi
sub eax, ecx
lea ecx, [esp + 0x18]
push eax
push edx
call fcn.00428260
jmp 0x436565
test eax, eax
je 0x436569
mov ecx, edx
sub ecx, eax
cmp esi, ecx
jae 0x436569
push edx
lea edx, [esi + eax]
push edx
lea ecx, [esp + 0x1c]
call fcn.00427920
mov eax, dword [esp + 0x18]
test esi, esi
jbe 0x43657b
push edi
push esi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0xac]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x18]
add esp, 4
test ecx, ecx
mov byte [esi], al
jne 0x43659e
xor eax, eax
jmp 0x4365a4
mov eax, dword [esp + 0x1c]
sub eax, ecx
test eax, eax
jge 0x4365aa
xor eax, eax
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 4], eax
push eax
push ecx
push edx
mov ecx, esi
call fcn.00428440
lea ecx, [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x24], 1
mov byte [esp + 0xa0], 0
call fcn.004275b0
mov eax, esi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret