Function at 0x40c410
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4c1c2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [0x4fee70]
push ebx
push ebp
push esi
mov dword [esp + 0xac], eax
push edi
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0040ae40
lea edi, [esi + 0x74]
push eax
mov ecx, edi
mov dword [esp + 0xc0], ebx
call dword [0x4d04f4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov ebp, dword [sym.imp.engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
push 0x4d2a4c
mov ecx, edi
call ebp
test eax, eax
je 0x40c615
cmp dword [esi + 0x4430], ebx
jne 0x40c4ae
push ebx
push 0x4d2a58
push 0x4d2a60
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
push 1
call dword [sym.imp.msvcr71.dll_exit]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0040ae40
mov edx, dword [eax]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], 1
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 3
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040ae40
mov eax, dword [esi + 0x4430]
test eax, eax
mov byte [esp + 0xbc], 4
jbe 0x40c546
xor ebp, ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x4438]
push ecx
lea ecx, [edx + ebp + 0x10]
call dword [sym.imp.engine.dll_public:_class_CTString____thiscall_CTString::operator_char_const__]
mov edi, dword [esi + 0x4438]
lea ecx, [esp + 0x1c]
add edi, ebp
call dword [sym.imp.engine.dll_public:_char_const____thiscall_CTString::operator_char_const__void_const]
push eax
call dword [sym.imp.msvcr71.dll_atoi]
add esp, 4
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x4430]
inc ebx
add ebp, 0x40
cmp ebx, eax
jb 0x40c504
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040ae40
push eax
lea ecx, [esi + 0x74]
mov byte [esp + 0xc0], 5
call dword [0x4d04f4]
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 4
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040ae40
push eax
lea ecx, [esi + 0x78]
mov byte [esp + 0xc0], 6
call dword [0x4d04f4]
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 4
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0040ae40
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 7
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTString::Length_void_const]
test eax, eax
jle 0x40c5e2
lea ecx, [esp + 0x24]
call dword [sym.imp.engine.dll_public:_char_const____thiscall_CTString::operator_char_const__void_const]
push eax
call dword [sym.imp.msvcr71.dll_atoi]
add esp, 4
mov word [esi + 0x7c], ax
jmp 0x40c5e8
mov word [esi + 0x7c], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 4
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 3
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [esp + 0x18]
jmp 0x40c794
push edi
lea ecx, [esp + 0x18]
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::constructor_class_CTString_const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 8
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTString::Length_void_const]
mov edi, dword [sym.imp.engine.dll_public:_void___thiscall_CTString::DeleteChar_long_int_]
push eax
lea ecx, [esp + 0x18]
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.engine.dll_public:_long_int___thiscall_CTString::Length_void_const]
push eax
lea ecx, [esp + 0x18]
call edi
push 0x4d2a84
lea ecx, [esp + 0x18]
call ebp
test eax, eax
je 0x40c68b
mov ecx, dword [esi + 0x4438]
push 0x4d2a8c
add ecx, 0x10
call dword [sym.imp.engine.dll_public:_class_CTString____thiscall_CTString::operator_char_const__]
mov eax, dword [esi + 0x4438]
mov dword [eax + 0x14], 0xc677
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], 0
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040ae40
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 9
call dword [sym.imp.engine.dll_public:_char_const____thiscall_CTString::operator_char_const__void_const]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c6c1
sub eax, edx
shr eax, 1
mov ebp, eax
xor edi, edi
cmp ebp, ebx
jle 0x40c6fe
mov ebx, dword [sym.imp.msvcr71.dll_sscanf]
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
lea edx, [esp + edi + 0x30]
push edx
lea ecx, [eax + edi*2]
push 0x4d2a9c
push ecx
call ebx
add esp, 0xc
inc edi
cmp edi, ebp
jl 0x40c6e0
xor ebx, ebx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
push eax
lea ecx, [esi + 0x78]
mov byte [esp + 0xc0], 0xa
call dword [0x4d04f4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 9
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040ae40
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0xb
call dword [sym.imp.engine.dll_public:_char_const____thiscall_CTString::operator_char_const__void_const]
push eax
call dword [sym.imp.msvcr71.dll_atoi]
mov word [esi + 0x7c], ax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 1
jne 0x40c76c
mov dword [esi + 0x4434], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 9
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 8
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa4]
pop ebx
call fcn.004c0057
add esp, 0xb0
ret