Function at 0x45a9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x463507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x2c]
push edi
lea edx, [esp + 0x28]
xor esi, esi
push ecx
push edx
lea ecx, [ebp + 4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
call fcn.0045c020
push 0x90
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, esi
mov dword [esp + 0x98], esi
je 0x45aaa9
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
lea esi, [edi + 0x5c]
mov ecx, esi
mov dword [edi], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x28], 1
mov dword [esi], ecx
lea eax, [edi + 8]
push 0
push 0
push eax
mov ecx, edi
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push 0
lea ecx, [edi + 8]
mov dword [esp + 0x9c], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov edx, dword [edi]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [eax + edi], ecx
mov dword [esi], 0x4658d8
mov esi, edi
mov dword [esp + 0x18], esi
jmp 0x45aaad
mov dword [esp + 0x18], esi
lea edx, [esp + 0x50]
push ebx
push edx
mov ecx, ebp
mov dword [esp + 0xa0], 0xffffffff
call fcn.0045b240
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0
mov dword [esp + 0xac], 3
mov dword [esp + 0x3c], ecx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.0045b420
push 0x21
lea ecx, [esi + 8]
push ebx
mov byte [esp + 0xa0], 4
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x45ab37
mov edx, dword [esi]
push eax
push 2
mov ecx, dword [edx + 4]
add ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x45ae83
push 0x100
call sub.MFC42.DLL_operatornew
push 8
mov edi, eax
call sub.MFC42.DLL_operatornew
sub esp, 8
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x50]
mov ebx, esp
mov dword [esp + 0x38], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x50]
mov edx, dword [ecx]
mov ecx, ebx
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x88]
push ecx
mov ecx, ebp
call fcn.0045af40
mov eax, dword [eax + 4]
mov byte [esp + 0x98], 5
test eax, eax
jne 0x45abad
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0
push 0xfde9
push 0
lea edx, [esp + 0x60]
push 0x46f510
lea eax, [esp + 0x74]
push edx
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0xc0], 6
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x18
mov bl, 7
mov ecx, eax
mov byte [esp + 0xa8], bl
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0043fac6
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0045bea0
mov ecx, eax
mov byte [esp + 0xa0], 8
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0xa4]
push eax
push ecx
lea ecx, [ebp + 0xbc]
call dword [sym.imp.MSVCP60.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 0x4766fc
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x38]
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], bl
mov dword [edx + 4], eax
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x9c], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x9c], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x20]
lea ebx, [ebp + 0xac]
lea ecx, [esp + 0x20]
mov dword [eax], edi
mov edx, dword [ebx + 8]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.004488b0
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x78]
mov ecx, dword [eax + 4]
add edx, ecx
mov dword [ebp + 0x78], edx
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov cl, byte [eax + esi + 4]
add eax, esi
test cl, 6
jne 0x45acec
mov eax, dword [eax + 0x28]
push 1
push 2
lea ecx, [esp + 0x80]
mov edx, dword [eax]
push 0
push ecx
mov ecx, eax
call dword [edx + 0x20]
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esi, eax
test byte [esi + 4], 6
jne 0x45ad11
mov ecx, dword [esi + 0x28]
push 1
push 1
lea eax, [esp + 0x80]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x20]
jmp 0x45ad1c
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
call fcn.0042b530
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [edx + ecx]
cmp eax, 0x1400
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
jb 0x45ad4e
mov dword [esp + 0x1c], 0x1400
push 1
mov dword [esp + 0x28], 0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push 0
call fcn.0042b530
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x94]
push eax
lea esi, [ecx + 8]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pubseekpos_class_std::fpos_int___int_]
push 8
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [eax + 4], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [eax + 4]
push ecx
push edi
mov ecx, esi
call dword [edx + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 1
mov ecx, dword [edx + 4]
sub esp, 0x18
add eax, ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0x44], eax
call fcn.0042b530
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::fpos_int____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pubseekpos_class_std::fpos_int___int_]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push 1
mov dword [ecx], edi
mov eax, dword [ebx + 8]
push eax
mov ecx, ebx
call fcn.004488b0
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0x78]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
add edi, edx
sub eax, ecx
mov dword [ebp + 0x78], edi
mov dword [esp + 0x28], eax
je 0x45ae39
cmp eax, 0x1400
jae 0x45ae2c
mov dword [esp + 0x1c], eax
jmp 0x45ad7f
mov dword [esp + 0x1c], 0x1400
jmp 0x45ad7f
mov eax, dword [esi + 0x50]
test eax, eax
je 0x45ae5d
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x45ae5d
push 2
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
test esi, esi
jne 0x45ae7f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or al, 2
test edx, edx
jne 0x45ae76
or al, 4
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov esi, dword [esp + 0x18]
xor edi, edi
cmp esi, edi
je 0x45ae99
mov edx, dword [esi]
push 1
mov eax, dword [edx + 4]
mov edx, dword [esi + eax]
add esi, eax
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x44]
cmp ecx, edi
je 0x45aebd
mov al, byte [ecx - 1]
test al, al
je 0x45aeb3
cmp al, 0xff
je 0x45aeb3
dec al
mov byte [ecx - 1], al
jmp 0x45aebd
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], edi
cmp ecx, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
je 0x45aeed
mov al, byte [ecx - 1]
test al, al
je 0x45aee3
cmp al, 0xff
je 0x45aee3
dec al
mov byte [ecx - 1], al
jmp 0x45aeed
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 8