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

Disassembly:
push 0xffffffffffffffff
push 0x5b81f6
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 0x4edcee
mov ebx, dword [esp + 0x78]
cmp ebx, 6
jle 0x4edcee
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.UNABLE_TO_SELL
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4ed87f
push str.TICKET
push ebp
call esi
add esp, 8
test eax, eax
je 0x4ed894
mov esi, dword [esp + 0x70]
push 0x63547c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
jmp 0x4edcfe
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 0x4ed911
mov al, byte [esi + ebp]
cmp al, 0xd
je 0x4ed8d2
cmp edi, 0x4f
je 0x4ed8d2
push eax
lea ecx, [esp + 0x78]
call fcn.00596ed0
inc edi
jmp 0x4ed90c
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 0x4ed901
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 0x4ed8b9
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 0x4ed940
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 0x4edc37
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.0040aab0
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 0x4edb12
cmp esi, 0x10
jge 0x4edb12
mov cl, byte [eax]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x4edb12
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.004edd40
add esp, 4
test al, al
jne 0x4eda09
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 1]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x4edb12
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x24], cl
mov edx, dword [esp + 0x24]
push edx
call fcn.004edd40
add esp, 4
test al, al
jne 0x4eda45
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 2]
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x4edb12
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x2c], cl
mov edx, dword [esp + 0x2c]
push edx
call fcn.004edd40
add esp, 4
test al, al
jne 0x4eda81
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 3]
mov byte [esp + 0x30], cl
mov edx, dword [esp + 0x30]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x4edb12
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x34], cl
mov edx, dword [esp + 0x34]
push edx
call fcn.004edd40
add esp, 4
test al, al
jne 0x4edab9
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 4]
mov byte [esp + 0x38], cl
mov edx, dword [esp + 0x38]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x4edb12
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x3c], cl
mov edx, dword [esp + 0x3c]
push edx
call fcn.004edd40
add esp, 4
test al, al
jne 0x4edaf1
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 5]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x4edb12
cmp esi, 6
je 0x4edb65
mov eax, dword [esp + 0x74]
mov cl, byte [eax + 6]
mov byte [esp + 0x44], cl
mov edx, dword [esp + 0x44]
push edx
call fcn.004eddc0
add esp, 4
test al, al
jne 0x4edb78
push str.__EOT_SUCCESSFUL
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edba4
push 0x624f54
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edbd4
push str._SPLIT_FR
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 6
jge 0x4edc04
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jl 0x4ed96e
jmp 0x4edc37
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4edc37
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 0x4edc32
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 0x4edc32
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 0x4edc32
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 0x4edc6c
push str.FORMAT
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4edc6c
lea eax, [esp + 0x78]
jmp 0x4edc87
push 0x63547c
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 0x4edcb4
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.005971b2
jmp 0x4edcfe
mov esi, dword [esp + 0x70]
push 0x63547c
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