Function at 0x457a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x494608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebp
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vbtable]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0xc], ebp
mov word [esp + 0x20], ax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov edi, 1
mov dword [esp + 0x7c], edx
mov dword [esp + 0xc], edi
push ebp
push edi
lea eax, [esp + 0x30]
push ebp
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0xc8], ebp
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
lea ecx, [esp + 0x28]
mov dword [esp + 0xb8], edi
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_filebuf_char__struct_std::char_traits_char__::vftable]
push ebp
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0xc0], 3
mov dword [esp + 0x30], edx
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_]
mov eax, dword [esp + 0x24]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
push 0x22
mov byte [esp + 0xbc], 4
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0xc4]
push eax
mov dword [esp + ecx + 0x2c], edx
lea ecx, [esp + 0x30]
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 0x457b5f
mov ecx, dword [esp + 0x24]
push ebp
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x78]
mov dword [esp + 0xb8], 5
cmp eax, ebp
jne 0x457bd5
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x24], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xb8], 6
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xb8], 0xffffffff
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x24], eax
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
xor eax, eax
jmp 0x457d6c
mov edi, dword [esi + 0x10]
push ebx
xor ebx, ebx
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov bx, word [edi + 0xe]
cmp eax, ebp
mov dword [esp + 0x10], edx
jge 0x457bef
neg eax
mov ebp, eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x1e], eax
mov word [esp + 0x18], 0x4d42
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x18]
add ecx, 0x36
push 0xe
mov dword [esp + 0x1e], ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2a], 0x36
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
push 0x28
push edi
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
cmp ebx, 0x18
jge 0x457c58
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esi + 0x10]
add ecx, 0x2c
mov dword [esi + 0x1c], ecx
shl eax, 2
push eax
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
cmp ebx, 0x18
je 0x457ca2
fld dword [esi + 0x24]
fcomp qword [0x4a0350]
fnstsw ax
test ah, 0x40
je 0x457ca2
mov esi, dword [esi + 0x14]
test ebp, ebp
jle 0x457cba
mov edi, dword [esp + 0x10]
mov ebx, esi
test edi, edi
jle 0x457c9d
lea eax, [edi*4]
mov esi, ebx
add ebx, eax
push 4
push esi
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
add esi, 4
dec edi
jne 0x457c86
mov edi, dword [esp + 0x10]
dec ebp
jne 0x457c77
jmp 0x457cba
xor eax, eax
mov ecx, dword [esi + 0x14]
mov ax, word [esi + 0x18]
imul eax, ebp
push eax
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
mov eax, dword [esp + 0x7c]
pop ebx
test eax, eax
je 0x457ce6
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x457ce6
push 2
push eax
lea ecx, [esp + 0x30]
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_]
lea edx, [esp + 0x28]
test edx, edx
jne 0x457d0a
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x28]
or al, 2
mov edx, dword [esp + ecx + 0x4c]
lea ecx, [esp + ecx + 0x24]
test edx, edx
jne 0x457d01
or al, 4
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::ios_base::clear_int__bool_]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x7c]
mov dword [esp + 0x10], edx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0xb8], 7
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [esp + 0x24]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xb8], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], edx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xb0
ret 4