Function at 0x40af60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567bd3
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 0x40b8a0
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [0x5e5d28]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x40b88f
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 0x40b88c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40b88f
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40b88c
cmp dword [ebp - 0x18], ebx
jle 0x40b88c
mov eax, dword [0x5e5ccc]
mov dword [ebp - 0x2c], 0xffffffff
cmp eax, ebx
je 0x40b010
mov ecx, dword [0x5e5cd0]
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 0x40b41d
xor esi, esi
cmp ebx, esi
jne 0x40b41d
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x2dc], esi
jne 0x40b41d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jge 0x40b41d
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.0054c1a0
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 0x40b400
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 0x40b3a7
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 0x40b3a7
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.0054cda0
lea ecx, [ebp - 0x3c]
mov bl, al
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40b3a7
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 0x40b145
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x40b147
xor eax, eax
test eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], eax
jne 0x40b15f
push 0x8007000e
call fcn.00565a92
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp - 4], 8
je 0x40b170
mov ecx, eax
call fcn.00412aa0
jmp 0x40b172
xor eax, eax
push eax
lea ecx, [ebp - 0xb4]
call fcn.0054c510
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00412980
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0054db30
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 9
test eax, eax
je 0x40b398
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 0x40b23d
push str._STORMP2P_PreDownload__Remove_finished_preDownload_CID
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x5e5cd0]
mov ecx, dword [0x5e5ccc]
push eax
push ecx
mov ecx, 0x5e5cc8
call fcn.00414530
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 0x40b3b8
jmp 0x40b3b2
mov eax, dword [ebp - 0x30]
cmp eax, 3
jg 0x40b3d1
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 [0x5e5cd0]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x84], ecx
push edx
push eax
mov ecx, 0x5e5cc8
mov dword [ebp - 0x70], 0
call fcn.00414320
mov ax, word [0x5e5cb0]
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 0x40b2d0
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 0x40b2f1
push esi
mov ecx, eax
call fcn.004129d0
mov esi, eax
jmp 0x40b2f3
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x38], esi
jne 0x40b308
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [ebp - 4], 0xd
je 0x40b314
mov eax, dword [esi]
jmp 0x40b316
xor eax, eax
lea ecx, [ebp - 0x94]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040d220
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x40b335
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 0x40b37a
mov ecx, esi
call fcn.00412a50
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 0x40b3b8
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 0x40b0b6
jmp 0x40b400
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 0x40b400
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.0054c260
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 0x40b439
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 0x40b459
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x5e5d28]
mov edx, dword [eax + 0x2d8]
push edx
call fcn.0048cf80
mov esi, dword [0x5e5ccc]
test esi, esi
je 0x40b7df
mov ecx, dword [0x5e5cd0]
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 0x40b7df
mov cx, word [0x5e5cb0]
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 0x40b4b7
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 0x40b4d8
push esi
mov ecx, eax
call fcn.004129d0
mov ebx, eax
jmp 0x40b4da
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x38], ebx
jne 0x40b4f2
push 0x8007000e
call fcn.00565a92
test ebx, ebx
mov byte [ebp - 4], 0x10
je 0x40b4fe
mov eax, dword [ebx]
jmp 0x40b500
xor eax, eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x4c]
push eax
push edx
call fcn.0040d220
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5e5ccc]
test ecx, ecx
mov byte [ebp - 4], 0x11
jne 0x40b523
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 [0x5e5ccc]
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 0x40b5b6
cmp dword [ebp - 0x3c], 1
jle 0x40b602
mov esi, dword [0x5e5ccc]
mov edi, dword [0x5e5cd0]
add esi, 0x18
cmp esi, edi
je 0x40b5a0
lea ebx, [esi - 0x18]
push esi
mov ecx, ebx
call fcn.00418ca0
add esi, 0x18
add ebx, 0x18
cmp esi, edi
jne 0x40b588
mov edi, dword [0x5e5cd0]
push edi
add edi, 0xffffffe8
push edi
mov ecx, 0x5e5cc8
call fcn.004145d0
sub dword [0x5e5cd0], 0x18
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b5df
mov ecx, dword [0x5e5ccc]
push 1
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2d8], edx
mov ecx, dword [0x5e5ccc]
mov edx, dword [eax]
mov ecx, dword [ecx]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [0x5e5ccc]
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x40b5f1
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 0x40b6e7
xor edi, edi
jmp 0x40b716
mov ecx, dword [0x5e5ccc]
mov eax, dword [0x5e5cd0]
push ecx
push eax
push eax
call fcn.004180e0
add esp, 0xc
mov esi, eax
mov eax, dword [0x5e5cd0]
mov ecx, 0x5e5cc8
push eax
push esi
call fcn.004145d0
mov ecx, dword [ebp - 0x14]
mov dword [0x5e5cd0], esi
xor eax, eax
lea edi, [ebp - 0x2ba]
mov dword [ecx + 0x2dc], 1
mov dx, word [0x5e5cb0]
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 0x40b69e
mov ecx, ebx
call fcn.00412a50
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x40b6af
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 0x40b8a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40b8a0
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.005655c0
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 0x40b74c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b743
cmp al, 0xff
je 0x40b743
dec al
mov byte [ecx], al
jmp 0x40b74c
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 0x40b77a
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x40b77a
mov ecx, edi
call fcn.00412ad0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x40b78b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x40b7af
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b7a6
cmp al, 0xff
je 0x40b7a6
dec al
mov byte [ecx], al
jmp 0x40b7af
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 0x40b7d8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, ebx
jmp 0x40b8a5
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b7fb
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x5e5d28]
mov edx, dword [eax + 0x2d8]
push edx
call fcn.0048cf80
mov ax, word [0x5e5cb0]
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 0x40b853
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x40b877
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b86e
cmp al, 0xff
je 0x40b86e
dec al
mov byte [ecx], al
jmp 0x40b877
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 0x40b8a0
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