Function at 0x100297c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084c57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x29a8
call fcn.1002c9f0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test esi, esi
mov dword [ebp - 0x24], ebx
je 0x1002a152
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1002a152
mov cl, byte [ebp + 0xb]
xor eax, eax
mov byte [ebp - 0x60], cl
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
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, 0x1009fd90
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1009fd90
lea ecx, [ebp - 0x60]
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_]
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea edi, [ebx + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [edi], edx
mov edx, dword [ebp - 0x68]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x64]
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
lea edx, [ebp - 0x60]
push ecx
push eax
push edx
lea ecx, [edi + 0x10]
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 eax, dword [ebp - 0x50]
lea ecx, [ebx + 0x20]
mov dword [edi + 0x20], eax
mov edx, 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 + 0x14]
mov eax, dword [edx]
push eax
push 0
push 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 al, byte [ebx + 0xd]
mov ecx, dword [esi + 0x24]
test al, al
mov dword [ebx + 0x30], ecx
je 0x10029937
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [ebx + 0x14], ecx
mov edx, dword [esi + 8]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], 0x64
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push edi
lea ecx, [ebx + 0x20]
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 edi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 0x24]
push edi
mov ecx, dword [edi]
push 0x7d4
push eax
push ecx
mov dword [ebx + 0x30], edx
mov byte [ebx + 0xc], 1
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebx + 0xd], 1
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edi
push 0x7d7
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea ecx, [ebp - 0x60]
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 al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x68]
lea ecx, [esi + 0x28]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.1002aad0
add esp, 8
test al, al
jne 0x1002996e
mov edx, dword [ebp - 0x14]
mov byte [ebx + 0xc], 1
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 0x7da
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1002a070
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 0x7d9
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x10
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x100299b1
mov eax, dword [edi + 4]
test eax, eax
jne 0x100299a7
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 0
push eax
call sub.MFC42.DLL_CFile::CFile
jmp 0x100299b3
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.100290e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.10029210
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x100299de
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]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.1002bae0
mov ecx, ebx
call fcn.1002c0f0
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 0x7d0
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea edx, [ebp - 0x44]
push edi
push edx
call fcn.1002a380
add esp, 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 - 0x44]
mov byte [ebp - 4], 4
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esi + 0x38]
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 eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x10029a96
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0xc], 1
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push 0x7dc
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, ebx
call fcn.1002c0e0
mov ecx, ebx
call fcn.1002c0c0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
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 - 0x20]
mov byte [ebp - 4], 1
call fcn.10029190
push 1
lea ecx, [ebp - 0x60]
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_]
jmp 0x1002a152
push esi
mov ecx, ebx
call fcn.1002a170
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1af]
mov byte [ebp - 0x1b0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x1b0]
push 0x104
push ecx
mov ecx, ebx
stosb byte es:[edi], al
call fcn.1002bfd0
test eax, eax
jle 0x1002a02d
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 0x7d2
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], 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_]
lea edi, [ebp - 0x1b0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 0xc], ecx
push ecx
lea ecx, [ebp - 0x34]
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 0x10029b45
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x30]
mov ecx, eax
lea esi, [ebp - 0x1b0]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov byte [ecx + eax], 0
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 5
push edx
call fcn.1002b250
add esp, 4
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10029bc3
mov ecx, ebx
call fcn.1002c0e0
mov ecx, ebx
call fcn.1002c0c0
push 1
lea ecx, [ebp - 0x34]
mov byte [ebx + 0xc], 1
mov byte [ebp - 4], 4
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 - 0x44]
mov byte [ebp - 4], 3
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 - 0x20]
mov byte [ebp - 4], 1
call fcn.10029190
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1002a152
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1002a149
cmp al, 0xff
je 0x1002a149
dec al
mov byte [ecx], al
jmp 0x1002a152
test eax, eax
jge 0x10029bd0
mov dword [ebp + 0xc], 0
jmp 0x10029bda
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x10029bda
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
fild qword [ebp - 0x4c]
fstp qword [ebp - 0xac]
fild dword [ebp + 0xc]
fdiv qword [ebp - 0xac]
fmul qword [0x1008b568]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
lea edi, [ebx + 0x10]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebx + 0x20]
mov eax, dword [edx]
push eax
lea eax, [esi + 0x14]
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 edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, dword [esi + 0x24]
push edi
push 0x7d4
push edx
push eax
mov dword [ebx + 0x30], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jne 0x10029c9f
mov edx, dword [esi]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], 0x64
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebx + 0x20]
mov eax, dword [edx]
push eax
lea eax, [esi + 0x14]
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 edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, dword [esi + 0x24]
push edi
push 0x7d4
push edx
push eax
mov dword [ebx + 0x30], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x10029f4d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
sub eax, edx
mov ecx, 0xa00
mov dword [ebp - 0x18], eax
xor eax, eax
lea edi, [ebp - 0x29b0]
mov dword [ebp + 0xc], eax
rep stosd dword es:[edi], eax
mov eax, edx
mov dword [ebp - 0x14], edx
cdq
push 1
push edx
push eax
lea ecx, [ebp - 0x20]
call fcn.10029220
mov eax, dword [ebx + 0x3c]
xor edi, edi
cmp eax, edi
jne 0x10029d73
lea eax, [ebx + 0x10]
mov byte [ebx + 0xc], 1
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 0x7dc
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, ebx
call fcn.1002c0e0
mov ecx, ebx
call fcn.1002c0c0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x10029d27
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10029d1e
cmp al, 0xff
je 0x10029d1e
dec al
mov byte [ecx], al
jmp 0x10029d27
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], edi
cmp eax, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
je 0x10029d54
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10029d4b
cmp al, 0xff
je 0x10029d4b
dec al
mov byte [ecx], al
jmp 0x10029d54
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
call fcn.10029190
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jmp 0x10029b9e
lea eax, [ebp - 0x29b0]
push 0x2800
push eax
lea ecx, [ebp - 0x20]
call fcn.100291f0
mov edx, dword [ebp + 0xc]
mov edi, eax
lea ecx, [ebp - 0x29b0]
push edi
add edx, edi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], edx
call fcn.1002bf00
test al, al
jne 0x10029dbf
lea edx, [ebp - 0x98]
push 0x10090b08
push edx
mov dword [ebp - 0x98], str.send_error
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], 0
add edi, eax
mov dword [ebp - 0xa4], edi
fild qword [ebp - 0xa4]
fdiv qword [ebp - 0xac]
fmul qword [0x1008b568]
call sub.MSVCRT.dll__ftol
mov cl, byte [ebp + 0xb]
mov dword [ebp - 0x48], eax
xor eax, eax
mov byte [ebp - 0x84], cl
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
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, 0x1009fd90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x9c], ecx
push ecx
lea ecx, [ebp - 0x84]
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 0x10029e74
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x80]
mov ecx, eax
mov esi, 0x1009fd90
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x80]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov byte [ecx + eax], 0
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
lea edi, [ebx + 0x10]
mov byte [ebp - 4], 6
mov dword [edi], edx
mov edx, dword [ebp - 0x88]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
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 - 0x84]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [edi + 0x10]
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 eax, dword [ebp - 0x74]
mov dword [edi + 0x20], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebx + 0x20]
mov eax, dword [edx]
push eax
lea eax, [esi + 0x14]
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 edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, dword [esi + 0x24]
push edi
push 0x7d4
push edx
push eax
mov dword [ebx + 0x30], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x80]
xor edi, edi
cmp eax, edi
mov byte [ebp - 4], 5
je 0x10029f36
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10029f2d
cmp al, 0xff
je 0x10029f2d
dec al
mov byte [ecx], al
jmp 0x10029f36
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
jb 0x10029cce
lea eax, [ebx + 0x10]
mov byte [ebx + 0xc], 1
mov byte [ebx + 0xd], 1
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push 0x7d7
push edx
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, ebx
call fcn.1002c0e0
mov ecx, ebx
call fcn.1002c0c0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x10029f9f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10029f96
cmp al, 0xff
je 0x10029f96
dec al
mov byte [ecx], al
jmp 0x10029f9f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], edi
cmp eax, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
je 0x10029fcc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10029fc3
cmp al, 0xff
je 0x10029fc3
dec al
mov byte [ecx], al
jmp 0x10029fcc
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
call fcn.10029190
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x1002a018
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1002a00f
cmp al, 0xff
je 0x1002a00f
dec al
mov byte [ecx], 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 0xc
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
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 0xc
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0xc], 1
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push 0x7d3
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, ebx
call fcn.1002c0e0
mov ecx, ebx
call fcn.1002c0c0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
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 - 0x20]
mov byte [ebp - 4], 1
call fcn.10029190
push 1
lea ecx, [ebp - 0x60]
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_]
jmp 0x1002a152
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc