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

Disassembly:
push 0xffffffffffffffff
push 0x45452f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
mov ebx, 4
lea edi, [ebp + 8]
push 3
push ebx
push edi
mov dword [esp + 0xa8], ebp
call fcn.0044d958
push 0x40d940
push 0x40d860
lea eax, [ebp + 0x218]
push 0x100
xor esi, esi
push 0x18
push eax
mov dword [esp + 0x148], esi
call fcn.0044d958
push 0x40d990
push 0x40d8c0
push 0xf
lea eax, [ebp + 0x1a18]
push 0x9c
push eax
mov byte [esp + 0x148], 1
call fcn.0044d958
push 0x46a404
mov ecx, edi
mov byte [esp + 0x138], 2
mov dword [ebp], 0x45a090
call sub.MFC42.DLL_CString::operator_2
push 0x46a404
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_2
push 0x46a404
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x1f4], 0x10
mov dword [ebp + 0x1f8], esi
mov dword [ebp + 0x1fc], esi
mov dword [ebp + 0x200], 0xc8
mov eax, 0x64
mov dword [ebp + 0x204], 0x12c
mov dword [ebp + 0x208], eax
mov dword [ebp + 0x20c], eax
mov dword [ebp + 4], esi
push 0x46681c
lea ecx, [ebp + 0x21c]
mov dword [ebp + 0x210], 1
call sub.MFC42.DLL_CString::operator_2
mov edi, 3
push str._:__
mov dword [ebp + 0x218], edi
lea ecx, [ebp + 0x234]
mov dword [ebp + 0x220], esi
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x230], ebx
push 0x466810
lea ecx, [ebp + 0x24c]
mov dword [ebp + 0x238], 1
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x248], edi
push 0x46680c
lea ecx, [ebp + 0x264]
mov dword [ebp + 0x250], 2
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x260], edi
push str._8__
lea ecx, [ebp + 0x27c]
mov dword [ebp + 0x268], edi
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x278], ebx
mov dword [ebp + 0x280], ebx
push 0x466800
lea ecx, [ebp + 0x294]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x290], edi
mov edi, 5
push 0x4667fc
lea ecx, [ebp + 0x2ac]
mov dword [ebp + 0x298], edi
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x2a8], 3
push str._:_X
lea ecx, [ebp + 0x2c4]
mov dword [ebp + 0x2b0], 6
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x2c0], ebx
push str._:_z
lea ecx, [ebp + 0x2dc]
mov dword [ebp + 0x2c8], 7
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x2d8], ebx
push str._:_
lea ecx, [ebp + 0x2f4]
mov dword [ebp + 0x2e0], 8
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x2f0], ebx
push 0x4667dc
lea ecx, [ebp + 0x30c]
mov dword [ebp + 0x2f8], 9
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x308], ebx
push 0x4667d8
lea ecx, [ebp + 0x324]
mov dword [ebp + 0x310], 0xa
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x320], 3
push 0x4667d4
lea ecx, [ebp + 0x33c]
mov dword [ebp + 0x328], 0xb
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x338], 3
push 0x4667d0
lea ecx, [ebp + 0x354]
mov dword [ebp + 0x340], 0xc
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x350], 3
push 0x4667cc
lea ecx, [ebp + 0x36c]
mov dword [ebp + 0x358], 0xd
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x368], 3
push str.__D_
lea ecx, [ebp + 0x384]
mov dword [ebp + 0x370], 0xe
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x380], ebx
push str.__J_
lea ecx, [ebp + 0x39c]
mov dword [ebp + 0x388], 0x4f
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x398], ebx
push str.__H_
lea ecx, [ebp + 0x3b4]
mov dword [ebp + 0x3a0], 0x50
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x3b0], ebx
push str.__M_
lea ecx, [ebp + 0x3cc]
mov dword [ebp + 0x3b8], 0x51
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x3c8], ebx
push str.__QQ_
lea ecx, [ebp + 0x3e4]
mov dword [ebp + 0x3d0], 0x52
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x3e0], edi
push str.__MM_
lea ecx, [ebp + 0x3fc]
mov dword [ebp + 0x3e8], 0x53
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x3f8], edi
mov dword [ebp + 0x400], 0x2c
push str.__L_
lea ecx, [ebp + 0x414]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x410], ebx
push str.__S_
lea ecx, [ebp + 0x42c]
mov dword [ebp + 0x418], 0x54
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x428], ebx
push str.__K_
lea ecx, [ebp + 0x444]
mov dword [ebp + 0x430], 0x2b
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x440], ebx
push str.__T_
lea ecx, [ebp + 0x45c]
mov dword [ebp + 0x448], 0x2a
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x458], ebx
push 0x466774
lea ecx, [ebp + 0x474]
mov dword [ebp + 0x460], 0x27
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x470], ebx
push str.__O_
lea ecx, [ebp + 0x48c]
mov dword [ebp + 0x478], 0x28
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x488], ebx
push 0x466764
lea ecx, [ebp + 0x4a4]
mov dword [ebp + 0x490], 0x55
call sub.MFC42.DLL_CString::operator_2
push str.__B_
lea ecx, [ebp + 0x4bc]
mov dword [ebp + 0x4a0], ebx
mov dword [ebp + 0x4a8], 0x29
call sub.MFC42.DLL_CString::operator_2
push str.__F_
lea ecx, [ebp + 0x4d4]
mov dword [ebp + 0x4b8], ebx
mov dword [ebp + 0x4c0], 0x56
call sub.MFC42.DLL_CString::operator_2
push str.__U_
lea ecx, [ebp + 0x4ec]
mov dword [ebp + 0x4d0], ebx
mov dword [ebp + 0x4d8], 0x38
call sub.MFC42.DLL_CString::operator_2
push str.__V_
lea ecx, [ebp + 0x504]
mov dword [ebp + 0x4e8], ebx
mov dword [ebp + 0x4f0], 0x57
call sub.MFC42.DLL_CString::operator_2
push str.__W_
lea ecx, [ebp + 0x51c]
mov dword [ebp + 0x500], ebx
mov dword [ebp + 0x508], 0x33
call sub.MFC42.DLL_CString::operator_2
push str.__Y1_
lea ecx, [ebp + 0x534]
mov dword [ebp + 0x518], ebx
mov dword [ebp + 0x520], 0x58
call sub.MFC42.DLL_CString::operator_2
push str.__Y2_
lea ecx, [ebp + 0x54c]
mov dword [ebp + 0x530], edi
mov dword [ebp + 0x538], 0x3e
call sub.MFC42.DLL_CString::operator_2
push 0x466724
lea ecx, [ebp + 0x564]
mov dword [ebp + 0x548], edi
mov dword [ebp + 0x550], 0x3f
call sub.MFC42.DLL_CString::operator_2
push 0x46671c
lea ecx, [ebp + 0x57c]
mov dword [ebp + 0x560], ebx
mov dword [ebp + 0x568], 0x40
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x578], edi
mov dword [ebp + 0x580], 0x41
push str.__X_
lea ecx, [ebp + 0x594]
call sub.MFC42.DLL_CString::operator_2
push str.__I_
lea ecx, [ebp + 0x5ac]
mov dword [ebp + 0x590], ebx
mov dword [ebp + 0x598], 0x42
call sub.MFC42.DLL_CString::operator_2
push str.__G_
lea ecx, [ebp + 0x5c4]
mov dword [ebp + 0x5a8], ebx
mov dword [ebp + 0x5b0], 0x34
call sub.MFC42.DLL_CString::operator_2
push 0x4666fc
lea ecx, [ebp + 0x5dc]
mov dword [ebp + 0x5c0], ebx
mov dword [ebp + 0x5c8], 0x44
call sub.MFC42.DLL_CString::operator_2
push 0x4666f4
lea ecx, [ebp + 0x5f4]
mov dword [ebp + 0x5d8], edi
mov dword [ebp + 0x5e0], 0x59
call sub.MFC42.DLL_CString::operator_2
push str.__C_
lea ecx, [ebp + 0x60c]
mov dword [ebp + 0x5f0], edi
mov dword [ebp + 0x5f8], 0x5a
call sub.MFC42.DLL_CString::operator_2
push str.__Z_
lea ecx, [ebp + 0x624]
mov dword [ebp + 0x608], ebx
mov dword [ebp + 0x610], 0x49
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x620], ebx
push 0x4666dc
lea ecx, [ebp + 0x63c]
mov dword [ebp + 0x628], 0x5b
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x638], ebx
push 0x4666d4
lea ecx, [ebp + 0x654]
mov dword [ebp + 0x640], 0x5c
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x650], ebx
push str.__OK_
lea ecx, [ebp + 0x66c]
mov dword [ebp + 0x658], 0x4a
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x668], edi
push str.__NO_
lea ecx, [ebp + 0x684]
mov dword [ebp + 0x670], 0x4b
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x680], edi
push str.__00_
lea ecx, [ebp + 0x69c]
mov dword [ebp + 0x688], 0x4c
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x698], edi
push str.__11_
lea ecx, [ebp + 0x6b4]
mov dword [ebp + 0x6a0], 0x5d
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp + 0x6b0], edi
mov dword [ebp + 0x6b8], 0x5e
lea ecx, [esp + 0xd8]
mov dword [ebp + 0x214], 0x32
call fcn.00445a10
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
push ecx
call fcn.0044e035
add esp, 4
push str...Reschatemotionconfig.ini
lea edx, [esp + 0x84]
push eax
push edx
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 6
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0xdc]
call fcn.00445ca0
test al, al
je 0x40d81b
mov al, byte [esp + 0x13]
mov edi, str.count
mov byte [esp + 0x28], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x40], esi
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
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 0x40d262
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov edx, ecx
mov esi, str.count
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x13]
mov edi, str.emotion
mov byte [esp + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x138], 7
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
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 0x40d2c7
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, str.emotion
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor esi, esi
mov byte [eax + ebx], 0
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x144], 8
call fcn.00446ae0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40d311
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d308
cmp al, 0xff
je 0x40d308
dec al
mov byte [ecx], al
jmp 0x40d311
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x40d342
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d339
cmp al, 0xff
je 0x40d339
dec al
mov byte [ecx], al
jmp 0x40d342
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov cl, byte [esp + 0x13]
mov dword [esp + 0x8c], esi
mov byte [esp + 0x84], cl
xor ecx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x134], 9
cmp eax, esi
mov dword [esp + 0x38], esi
jle 0x40d7ee
lea edx, [ebp + 0x6d8]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x98]
push eax
push str.em_d
push 0x3f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, 0x46a404
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
push 1
not ecx
dec ecx
mov byte [esp + 0x64], dl
mov ebx, ecx
lea ecx, [esp + 0x64]
push ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
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 0x40d400
mov edi, dword [esp + 0x64]
mov ecx, ebx
mov eax, ecx
mov esi, 0x46a404
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], ebx
xor esi, esi
mov byte [ecx + ebx], 0
mov edi, str.emotion
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x44]
push ebx
mov byte [esp + 0x13c], 0xa
mov byte [esp + 0x48], dl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
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 0x40d465
mov edi, dword [esp + 0x44]
mov ecx, ebx
mov eax, ecx
mov esi, str.emotion
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], ebx
xor esi, esi
mov byte [ecx + ebx], 0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov byte [esp + 0x13c], 0xb
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
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 0x40d4ce
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor esi, esi
mov byte [ecx + ebx], 0
lea edx, [esp + 0x60]
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xe8]
mov byte [esp + 0x144], 0xc
call fcn.00446bf0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40d51e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d515
cmp al, 0xff
je 0x40d515
dec al
mov byte [ecx], al
jmp 0x40d51e
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x40d54f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d546
cmp al, 0xff
je 0x40d546
dec al
mov byte [ecx], al
jmp 0x40d54f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], esi
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x134], 9
je 0x40d588
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d57f
cmp al, 0xff
je 0x40d57f
dec al
mov byte [ecx], al
jmp 0x40d588
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], esi
cmp eax, esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
jne 0x40d5a4
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
mov eax, dword [esp + 0x28]
lea ecx, [eax - 0xc]
call sub.MFC42.DLL_CString::operator_2
mov cl, byte [esp + 0x13]
mov edi, 0x46a404
mov byte [esp + 0x28], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], esi
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
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 0x40d60e
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov edx, ecx
mov esi, 0x46a404
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x13]
mov edi, str.path
mov byte [esp + 0x50], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x138], 0xd
mov ebx, ecx
lea ecx, [esp + 0x54]
push ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
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 0x40d673
mov edi, dword [esp + 0x54]
mov ecx, ebx
mov edx, ecx
mov esi, str.path
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x13]
lea edi, [esp + 0x98]
mov byte [esp + 0x70], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x138], 0xe
mov ebx, ecx
lea ecx, [esp + 0x74]
push ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
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 0x40d6e2
mov edi, dword [esp + 0x74]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ebx
xor esi, esi
mov byte [eax + ebx], 0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0xe8]
mov byte [esp + 0x144], 0xf
call fcn.00446bf0
mov eax, dword [esp + 0x74]
cmp eax, esi
je 0x40d732
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d729
cmp al, 0xff
je 0x40d729
dec al
mov byte [ecx], al
jmp 0x40d732
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x74], esi
cmp eax, esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
je 0x40d763
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d75a
cmp al, 0xff
je 0x40d75a
dec al
mov byte [ecx], al
jmp 0x40d763
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], esi
cmp eax, esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov byte [esp + 0x134], 9
je 0x40d79c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40d793
cmp al, 0xff
je 0x40d793
dec al
mov byte [ecx], al
jmp 0x40d79c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], esi
cmp eax, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
jne 0x40d7b8
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 edi, dword [esp + 0x24]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], 1
inc ecx
add edi, 0x18
cmp ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edi
jl 0x40d386
mov ecx, dword [esp + 0x88]
mov edx, dword [ebp + 0x214]
add edx, eax
cmp ecx, esi
mov dword [ebp + 0x214], edx
je 0x40d81b
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x40d812
cmp al, 0xff
je 0x40d812
dec al
mov byte [ecx], al
jmp 0x40d81b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x80]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 2
call fcn.00445a70
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret