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

Disassembly:
push 0xffffffffffffffff
push 0x5b8026
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 0x4edd0e
mov ebx, dword [esp + 0x78]
cmp ebx, 6
jle 0x4edd0e
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.UNABLE_TO_SELL
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4ed89f
push str.TICKET
push ebp
call esi
add esp, 8
test eax, eax
je 0x4ed8b4
mov esi, dword [esp + 0x70]
push 0x63546c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
jmp 0x4edd1e
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 0x4ed931
mov al, byte [esi + ebp]
cmp al, 0xd
je 0x4ed8f2
cmp edi, 0x4f
je 0x4ed8f2
push eax
lea ecx, [esp + 0x78]
call fcn.00596ca0
inc edi
jmp 0x4ed92c
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 0x4ed921
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 0x4ed8d9
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 0x4ed960
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 0x4edc57
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.0040aaa0
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 0x4edb32
cmp esi, 0x10
jge 0x4edb32
mov cl, byte [eax]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
push edx
call fcn.004edd60
add esp, 4
test al, al
je 0x4edb32
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.004edd60
add esp, 4
test al, al
jne 0x4eda29
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb32
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x24], cl
mov edx, dword [esp + 0x24]
push edx
call fcn.004edd60
add esp, 4
test al, al
jne 0x4eda65
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb32
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x2c], cl
mov edx, dword [esp + 0x2c]
push edx
call fcn.004edd60
add esp, 4
test al, al
jne 0x4edaa1
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x30], cl
mov edx, dword [esp + 0x30]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb32
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x34], cl
mov edx, dword [esp + 0x34]
push edx
call fcn.004edd60
add esp, 4
test al, al
jne 0x4edad9
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x38], cl
mov edx, dword [esp + 0x38]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb32
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
push edx
call fcn.004edd60
add esp, 4
test al, al
jne 0x4edb11
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb32
cmp esi, 6
je 0x4edb85
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 6]
mov byte [esp + 0x44], cl
mov edx, dword [esp + 0x44]
push edx
call fcn.004edde0
add esp, 4
test al, al
jne 0x4edb98
push str.__EOT_SUCCESSFUL
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edbc4
push 0x624f54
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edbf4
push str._SPLIT_FR
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edc24
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jl 0x4ed98e
jmp 0x4edc57
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4edc57
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 0x4edc52
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 0x4edc52
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 0x4edc52
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 0x4edc8c
push str.FORMAT
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4edc8c
lea eax, [esp + 0x78]
jmp 0x4edca7
push 0x63546c
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 0x4edcd4
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.00596f82
jmp 0x4edd1e
mov esi, dword [esp + 0x70]
push 0x63546c
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