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

Disassembly:
push 0xffffffffffffffff
push 0x5b5396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x10], edi
je 0x4ec6de
mov ebx, dword [esp + 0x78]
cmp ebx, 6
jle 0x4ec6de
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.UNABLE_TO_SELL
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4ec26f
push str.TICKET
push ebp
call esi
add esp, 8
test eax, eax
je 0x4ec284
mov esi, dword [esp + 0x70]
push 0x631fbc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
jmp 0x4ec6ee
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString_1
xor esi, esi
mov byte [esp + 0x68], 2
test ebx, ebx
jle 0x4ec301
mov al, byte [esi + ebp]
cmp al, 0xd
je 0x4ec2c2
cmp edi, 0x4f
je 0x4ec2c2
push eax
lea ecx, [esp + 0x78]
call fcn.005942a0
inc edi
jmp 0x4ec2fc
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x74]
cmp dword [eax - 8], 6
jl 0x4ec2f1
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::Empty
xor edi, edi
inc esi
cmp esi, ebx
jl 0x4ec2a9
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x74]
cmp dword [eax - 8], 6
jl 0x4ec330
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x54]
mov ebx, 4
xor edi, edi
mov byte [esp + 0x68], bl
test eax, eax
jle 0x4ec627
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.0040aa20
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x74]
mov esi, dword [eax - 8]
cmp esi, 6
jl 0x4ec502
cmp esi, 0x10
jge 0x4ec502
mov cl, byte [eax]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
push edx
call fcn.004ec730
add esp, 4
test al, al
je 0x4ec502
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.004ec730
add esp, 4
test al, al
jne 0x4ec3f9
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4ec502
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x24], cl
mov edx, dword [esp + 0x24]
push edx
call fcn.004ec730
add esp, 4
test al, al
jne 0x4ec435
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4ec502
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x2c], cl
mov edx, dword [esp + 0x2c]
push edx
call fcn.004ec730
add esp, 4
test al, al
jne 0x4ec471
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x30], cl
mov edx, dword [esp + 0x30]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4ec502
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x34], cl
mov edx, dword [esp + 0x34]
push edx
call fcn.004ec730
add esp, 4
test al, al
jne 0x4ec4a9
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x38], cl
mov edx, dword [esp + 0x38]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4ec502
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
push edx
call fcn.004ec730
add esp, 4
test al, al
jne 0x4ec4e1
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x4ec502
cmp esi, 6
je 0x4ec555
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 6]
mov byte [esp + 0x44], cl
mov edx, dword [esp + 0x44]
push edx
call fcn.004ec7b0
add esp, 4
test al, al
jne 0x4ec568
push str.__EOT_SUCCESSFUL
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4ec594
push 0x621ce4
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4ec5c4
push str._SPLIT_FR
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4ec5f4
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jl 0x4ec35e
jmp 0x4ec627
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4ec627
lea ecx, [esp + 0x44]
push 6
push ecx
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x68], bl
lea ecx, [esp + 0x44]
jmp 0x4ec622
add eax, 0xfffffffa
push 6
lea edx, [esp + 0x48]
push eax
push edx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x68], bl
lea ecx, [esp + 0x44]
jmp 0x4ec622
add eax, 0xfffffffa
push 6
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 8
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x68], bl
lea ecx, [esp + 0x44]
jmp 0x4ec622
add eax, 0xfffffffa
push 6
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x68], bl
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x78]
cmp dword [eax - 8], 6
jne 0x4ec65c
push str.FORMAT
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4ec65c
lea eax, [esp + 0x78]
jmp 0x4ec677
push 0x631fbc
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], 2
mov byte [esp + 0x68], 0xa
mov esi, dword [esp + 0x70]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ebx
or al, 1
test al, 2
mov dword [esp + 0x10], eax
je 0x4ec6a4
and al, 0xfd
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0
call fcn.00594582
jmp 0x4ec6ee
mov esi, dword [esp + 0x70]
push 0x631fbc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret