Function at 0x40ad60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4149c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa8]
mov dword [ebp - 0x2c], esi
test al, al
mov dword [ebp - 0x1c], edi
jne 0x40ada5
call fcn.0040b9c0
test al, al
je 0x40b01b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
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, 0xc
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 ebx, [esi + 0x4c]
mov dword [ebp - 4], edi
mov edx, dword [ecx]
mov ecx, ebx
push edx
push edi
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_]
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
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 ebx
lea eax, [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push 0x41b410
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0040bfd0
add esp, 0x14
lea edx, [ebp - 0x28]
push eax
push edx
mov dword [ebp - 4], 1
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, 0xc
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 edi, [esi + 0x18]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
mov ecx, edi
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_]
mov ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
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, [ebp - 0xe4]
mov dword [ebp - 4], 0xffffffff
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 [ebx + 4]
mov dword [ebp - 0x14], 0xc8
test eax, eax
jne 0x40ae81
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]
mov ecx, dword [esi + 0x88]
push ecx
mov ecx, dword [esi + 0xa0]
push 0
push 0
push 1
push 0
push eax
push 1
call sub.MFC42.DLL_CHttpConnection::OpenRequest
push 0
push 0
push 0
push 0
mov ecx, eax
mov dword [esi + 0xa4], eax
mov dword [ebp - 4], 3
call sub.MFC42.DLL_CHttpFile::SendRequest
mov edx, dword [esi + 0xa4]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x40b5b5
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0xf3]
mov byte [ebp - 0xf4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
push 0
lea ecx, [ebp - 0xf4]
push eax
push ecx
push 0x13
mov ecx, edx
mov dword [ebp + 8], 0x20
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea edx, [ebp - 0xf4]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0x194
mov eax, 0x194
je 0x40af24
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040bd70
test al, al
je 0x40b5a9
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push 0
lea ecx, [ebp - 0x114]
push eax
push ecx
mov ecx, dword [esi + 0xa4]
push 5
mov dword [ebp - 0x14], 0x20
call sub.MFC42.DLL_CHttpFile::QueryInfo
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
mov dword [esi + 0xac], 0
jne 0x40b030
push ebx
lea eax, [ebp + 0xf]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push 0x41b3fc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040bfd0
add esp, 0x14
lea edx, [ebp - 0xe4]
mov ebx, 8
push eax
push edx
mov dword [ebp - 4], ebx
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, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 9
mov edx, dword [ecx]
lea ecx, [esi + 0x18]
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_]
mov ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
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 dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x3c]
lea ebx, [eax - 1]
cmp ecx, ebx
jb 0x40b06f
mov eax, dword [edi + 4]
test eax, eax
je 0x40b06f
mov al, byte [eax - 1]
test al, al
je 0x40b05d
cmp al, 0xff
je 0x40b05d
push 0
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, dword [edi + 4]
test eax, eax
je 0x40b068
mov byte [eax - 1], 0xff
mov eax, dword [edi + 4]
add eax, ebx
jmp 0x40b074
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]
cmp byte [eax], 0x5c
je 0x40b101
mov eax, dword [esi + 0x44]
mov ecx, dword [edi + 8]
lea ebx, [eax - 1]
cmp ecx, ebx
jb 0x40b0b7
mov eax, dword [edi + 4]
test eax, eax
je 0x40b0b7
mov al, byte [eax - 1]
test al, al
je 0x40b0a7
cmp al, 0xff
je 0x40b0a7
push 0
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, dword [edi + 4]
test eax, eax
je 0x40b0b2
mov byte [eax - 1], 0xff
add ebx, dword [edi + 4]
jmp 0x40b0bd
mov ebx, 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]
cmp byte [ebx], 0x2f
je 0x40b101
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [edi + 8]
sub edx, ecx
cmp edx, 1
ja 0x40b0da
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebx, dword [edi + 8]
push 0
inc ebx
mov ecx, edi
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40b101
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
add eax, ecx
push ebx
mov ecx, edi
mov byte [eax], 0x5c
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push eax
push edi
push ecx
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, 0xc
mov eax, dword [ebp - 0x44]
mov edi, 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]
test eax, eax
mov dword [ebp - 4], 0xa
je 0x40b128
mov edi, eax
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vbtable]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xd4], edx
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x7c], eax
push 0
push 1
lea ecx, [ebp - 0xd0]
push 0
push ecx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xb
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_]
push 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
push 0x22
push edi
mov eax, dword [edx + 4]
mov byte [ebp - 4], 0xd
mov dword [ebp + eax - 0xd4], ecx
lea ecx, [ebp - 0xd0]
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 0x40b1cd
mov edx, dword [ebp - 0xd4]
push 0
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0xd4]
mov eax, dword [ebp + eax - 0xd0]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [ebp - 0xd4]
mov bl, 0xe
mov byte [ebp - 4], bl
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0xd0]
test eax, eax
jne 0x40b47a
mov eax, dword [esi + 0xac]
test eax, eax
jle 0x40b211
lea edi, [esi + 0xb0]
push eax
push edi
lea ecx, [ebp - 0xd4]
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 ecx, 0x100
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x523]
mov byte [ebp - 0x524], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esi + 0xac]
mov dword [esi + 0xac], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp ebx, dword [ebp + 8]
jae 0x40b2b5
lea eax, [ebp - 0x524]
push 0x400
push eax
mov ecx, esi
call fcn.0040b6c0
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jle 0x40b39c
mov edx, dword [ebp + 8]
add ebx, edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
fild qword [ebp - 0x30]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
fmul qword [0x4166c8]
fild qword [ebp - 0x20]
fdivp st(1)
fstp qword [esi + 0x60]
call fcn.0040d4b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x524]
push edi
push ecx
lea ecx, [ebp - 0xd4]
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 ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x524]
rep stosd dword es:[edi], eax
cmp ebx, dword [ebp + 8]
jb 0x40b23f
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40b2e3
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x40b2e3
push 2
push eax
lea ecx, [ebp - 0xd0]
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 ecx, [ebp - 0xd0]
test ecx, ecx
jne 0x40b305
mov edx, dword [ebp - 0xd4]
push 0
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0xd4]
mov eax, dword [ebp + eax - 0xd0]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, esi
call fcn.0040bbb0
mov edx, dword [ebp - 0xd4]
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0xc], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xd4], ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x12
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov byte [ebp - 4], 0xa
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xd4], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40b465
mov al, byte [ecx - 1]
test al, al
je 0x40b45b
cmp al, 0xff
je 0x40b45b
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x80]
cmp eax, ecx
je 0x40b3ca
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x40b3ca
push 2
push eax
lea ecx, [ebp - 0xd0]
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, [ebp - 0xd0]
test edx, edx
jne 0x40b3ec
mov eax, dword [ebp - 0xd4]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xd0]
or al, 2
lea ecx, [ebp + ecx - 0xd4]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, esi
call fcn.0040bbb0
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0x7c]
mov dword [ebp + 0xc], 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 [ebp + ecx - 0xd4], edx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0xd4]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xd4], edx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
jmp 0x40b015
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [ebp - 0x48]
lea edi, [esi + 0x18]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, edi
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_]
mov ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
sub esp, 0x10
lea edx, [ebp - 0x15]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
push 0x41b3ec
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [ebp - 0x124]
push eax
call fcn.0040bfd0
add esp, 0x14
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 0x10
mov edx, dword [ecx]
mov ecx, edi
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_]
mov ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], bl
test eax, eax
je 0x40b51b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b512
cmp al, 0xff
je 0x40b512
dec al
mov byte [ecx], al
jmp 0x40b51b
push ecx
call fcn.004134f0
add esp, 4
mov ecx, esi
call fcn.0040bbb0
mov edx, dword [ebp - 0xd4]
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0xc], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xd4], ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x11
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov byte [ebp - 4], 0xa
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xd4], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40b01b
mov al, byte [ecx - 1]
test al, al
je 0x40b59a
cmp al, 0xff
je 0x40b59a
dec al
mov byte [ecx - 1], al
jmp 0x40b01b
dec ecx
push ecx
call fcn.004134f0
add esp, 4
jmp 0x40b01b
mov ecx, esi
call fcn.0040bbb0
jmp 0x40b01b
push ebx
lea eax, [ebp + 0xf]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push 0x41b3fc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040bfd0
add esp, 0x14
lea edx, [ebp - 0xe4]
mov ebx, 6
push eax
push edx
mov dword [ebp - 4], ebx
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, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 7
mov edx, dword [ecx]
mov ecx, edi
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_]
mov ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
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 dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
jmp 0x40b015