Function at 0x40ade0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552733
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b4
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x14], ecx
je 0x40b720
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [0x5cb0b8]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x40b70f
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc0]
test eax, eax
jl 0x40b70c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40b70f
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40b70c
cmp dword [ebp - 0x18], ebx
jle 0x40b70c
mov eax, dword [0x5cb05c]
mov dword [ebp - 0x2c], 0xffffffff
cmp eax, ebx
je 0x40ae90
mov ecx, dword [0x5cb060]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
mov dl, byte [ebp + 0xb]
mov esi, dword [ebp - 0x28]
push 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov byte [ebp - 0x5c], dl
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, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x5c]
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_]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 2
call dword [ecx + 0x5c]
test eax, eax
jl 0x40b29d
xor esi, esi
cmp ebx, esi
jne 0x40b29d
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x2dc], esi
jne 0x40b29d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jge 0x40b29d
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00539870
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
lea ecx, [eax + 1]
add eax, edx
cmp ecx, eax
mov dword [ebp - 0x24], ecx
jge 0x40b280
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
push edx
push eax
mov byte [ebp - 4], 5
call dword [ecx + 0x28]
test eax, eax
jl 0x40b227
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x40b227
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
lea ecx, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 6
call fcn.0053a470
lea ecx, [ebp - 0x3c]
mov bl, al
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40b227
mov esi, dword [ebp - 0x34]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x40afc5
push esi
mov ecx, eax
call fcn.00412730
jmp 0x40afc7
xor eax, eax
test eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], eax
jne 0x40afdf
push 0x8007000e
call fcn.005505fa
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp - 4], 8
je 0x40aff0
mov ecx, eax
call fcn.004127c0
jmp 0x40aff2
xor eax, eax
push eax
lea ecx, [ebp - 0xb4]
call fcn.00539be0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004126a0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0053b200
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 9
test eax, eax
je 0x40b218
mov dl, byte [ebp - 0x6c]
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], dl
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [ebp - 0x4c]
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 eax, [ebp - 0x4c]
lea ecx, [ebp - 0x5c]
push eax
push ecx
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP60.dll_bool___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, 8
test al, al
je 0x40b0bd
push str._STORMP2P_PreDownload__Remove_finished_preDownload_CID
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5cb060]
mov ecx, dword [0x5cb05c]
push eax
push ecx
mov ecx, 0x5cb058
call fcn.00414030
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
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 - 0x6c]
mov byte [ebp - 4], 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_]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
je 0x40b238
jmp 0x40b232
mov eax, dword [ebp - 0x30]
cmp eax, 3
jg 0x40b251
mov edx, eax
mov al, byte [ebp + 0xb]
inc edx
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x80], 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, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
mov edx, dword [ecx]
lea ecx, [ebp - 0x80]
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, dword [ebp - 0x24]
mov eax, dword [0x5cb060]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x84], ecx
push edx
push eax
mov ecx, 0x5cb058
mov dword [ebp - 0x70], 0
call fcn.00413e20
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [ebp - 0x1b8], ax
xor eax, eax
lea edi, [ebp - 0x1b6]
mov esi, 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]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40b150
mov esi, eax
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 0xc
je 0x40b171
push esi
mov ecx, eax
call fcn.004126f0
mov esi, eax
jmp 0x40b173
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x38], esi
jne 0x40b188
push 0x8007000e
call fcn.005505fa
test esi, esi
mov byte [ebp - 4], 0xd
je 0x40b194
mov eax, dword [esi]
jmp 0x40b196
xor eax, eax
lea ecx, [ebp - 0x94]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040d0e0
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x40b1b5
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 edx, dword [ebp - 0x30]
push edx
push eax
push str._STORMP2P_PreDownload__PUSH_BACK_CID:__s__Index:__d_
lea eax, [ebp - 0x1b8]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test esi, esi
je 0x40b1fa
mov ecx, esi
call fcn.00412770
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
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 - 0x4c]
mov byte [ebp - 4], 9
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 - 0x6c]
mov byte [ebp - 4], 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_]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
je 0x40b238
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
inc eax
add edx, ecx
mov dword [ebp - 0x24], eax
cmp eax, edx
jl 0x40af36
jmp 0x40b280
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
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 - 0x6c]
mov byte [ebp - 4], 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_]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
je 0x40b280
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00539930
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], 0
test eax, eax
je 0x40b2b9
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push str.u.Wi_
push eax
call dword [ecx]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40b2d9
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x5cb0b8]
mov edx, dword [eax + 0x2d8]
push edx
call fcn.00486020
mov esi, dword [0x5cb05c]
test esi, esi
je 0x40b65f
mov ecx, dword [0x5cb060]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
mov dword [ebp - 0x3c], edx
jle 0x40b65f
mov cx, word [0x5cb040]
xor eax, eax
mov word [ebp - 0x1b8], cx
mov ecx, 0x40
lea edi, [ebp - 0x1b6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [esi + 8]
test esi, esi
jne 0x40b337
mov esi, 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 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov byte [ebp - 4], 0xf
je 0x40b358
push esi
mov ecx, eax
call fcn.004126f0
mov ebx, eax
jmp 0x40b35a
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x38], ebx
jne 0x40b372
push 0x8007000e
call fcn.005505fa
test ebx, ebx
mov byte [ebp - 4], 0x10
je 0x40b37e
mov eax, dword [ebx]
jmp 0x40b380
xor eax, eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x4c]
push eax
push edx
call fcn.0040d0e0
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5cb05c]
test ecx, ecx
mov byte [ebp - 4], 0x11
jne 0x40b3a3
mov ecx, 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 eax, dword [eax]
push eax
push ecx
push str._STORMP2P_PreDownload__Passivity_to_StartP2PPreDownLoad__s___d_
lea ecx, [ebp - 0x1b8]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5cb05c]
add eax, 4
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCP60.dll_bool___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, 8
test al, al
je 0x40b436
cmp dword [ebp - 0x3c], 1
jle 0x40b482
mov esi, dword [0x5cb05c]
mov edi, dword [0x5cb060]
add esi, 0x18
cmp esi, edi
je 0x40b420
lea ebx, [esi - 0x18]
push esi
mov ecx, ebx
call fcn.00418590
add esi, 0x18
add ebx, 0x18
cmp esi, edi
jne 0x40b408
mov edi, dword [0x5cb060]
push edi
add edi, 0xffffffe8
push edi
mov ecx, 0x5cb058
call fcn.004140d0
sub dword [0x5cb060], 0x18
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b45f
mov ecx, dword [0x5cb05c]
push 1
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2d8], edx
mov ecx, dword [0x5cb05c]
mov edx, dword [eax]
mov ecx, dword [ecx]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [0x5cb05c]
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x40b471
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]
xor esi, esi
cmp ebx, esi
jne 0x40b567
xor edi, edi
jmp 0x40b596
mov ecx, dword [0x5cb05c]
mov eax, dword [0x5cb060]
push ecx
push eax
push eax
call fcn.004179d0
add esp, 0xc
mov esi, eax
mov eax, dword [0x5cb060]
mov ecx, 0x5cb058
push eax
push esi
call fcn.004140d0
mov ecx, dword [ebp - 0x14]
mov dword [0x5cb060], esi
xor eax, eax
lea edi, [ebp - 0x2ba]
mov dword [ecx + 0x2dc], 1
mov dx, word [0x5cb040]
mov ecx, 0x40
mov word [ebp - 0x2bc], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._STORMP2P_PreDownload__PreDownload_All_CID.
lea eax, [ebp - 0x2bc]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
lea ecx, [ebp - 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test ebx, ebx
je 0x40b51e
mov ecx, ebx
call fcn.00412770
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x40b52f
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 1
lea ecx, [ebp - 0x5c]
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_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40b720
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40b720
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00550140
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
mov edx, dword [ebp - 0x14]
push 0x64
push esi
push edi
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov ebx, eax
mov eax, dword [ebp - 0x48]
cmp eax, esi
je 0x40b5cc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b5c3
cmp al, 0xff
je 0x40b5c3
dec al
mov byte [ecx], al
jmp 0x40b5cc
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], esi
cmp edi, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
je 0x40b5fa
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40b5fa
mov ecx, edi
call fcn.004127f0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x40b60b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x40b62f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b626
cmp al, 0xff
je 0x40b626
dec al
mov byte [ecx], al
jmp 0x40b62f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x40b658
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, ebx
jmp 0x40b725
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b67b
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x5cb0b8]
mov edx, dword [eax + 0x2d8]
push edx
call fcn.00486020
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [ebp - 0x3c0], ax
xor eax, eax
lea edi, [ebp - 0x3be]
push str._STORMP2P_PreDownload__PreDownload_All_CID.
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x3c0]
push 0x104
push ecx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
lea edx, [ebp - 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
mov byte [ebp - 4], 2
je 0x40b6d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x40b6f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b6ee
cmp al, 0xff
je 0x40b6ee
dec al
mov byte [ecx], al
jmp 0x40b6f7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40b720
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x3cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4