Function at 0x587770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.DISCOUNT_PASSENGER_TYPE_UNKNOWN
mov ebp, ecx
push esi
call edi
add esp, 8
test eax, eax
je 0x5877af
push str.DISCOUNT_PASSENGER_TYPE_UNKNOWN
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x28], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
push str.RETRANSMIT
push esi
call edi
add esp, 8
test eax, eax
je 0x5877db
push 0x637878
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x28], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
push str.NO_FARES
push esi
call edi
add esp, 8
test eax, eax
je 0x587807
push str.NO_FARES
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x28], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov al, 0x4a
mov byte [esp + 0x10], 0xe
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
mov byte [esp + 0x11], 0x4e
push eax
push esi
mov byte [esp + 0x1a], 0x5e
mov byte [esp + 0x1d], 0x53
mov byte [esp + 0x1e], 0x43
mov byte [esp + 0x1f], 0x35
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0x54
mov byte [esp + 0x22], 0x4b
mov byte [esp + 0x23], 0x3c
mov byte [esp + 0x24], 0x5b
mov byte [esp + 0x25], 0
call edi
add esp, 8
test eax, eax
jne 0x5877ea
mov ebx, dword [ebp + 0x4070]
test ebx, ebx
jne 0x58787a
push esi
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x4070], eax
jmp 0x5878fb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 0xa]
push eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x4070], edx
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 0x4070]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov ecx, dword [esp + 0x28]
xor bl, bl
xor eax, eax
add ecx, esi
mov dl, 0x20
cmp byte [ecx + eax - 0xb], dl
jne 0x587914
cmp byte [ecx + eax - 0xa], 0x2b
je 0x58791c
inc eax
cmp eax, 0xa
jl 0x587907
jmp 0x58791e
mov bl, 1
push 0x63226c
push esi
call edi
mov edx, eax
add esp, 8
test edx, edx
jne 0x587971
test bl, bl
jne 0x5879a6
mov edx, dword [ebp + 0x4070]
push 0x6351b0
push edx
call edi
add esp, 8
test eax, eax
jne 0x587a3f
mov eax, dword [ebp + 0x4070]
push str.EQUIV__CNY
push eax
call edi
add esp, 8
test eax, eax
jne 0x587a3f
mov ecx, dword [ebp + 0x4070]
push ecx
jmp 0x5877ef
mov edi, 0x63226c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov al, byte [edx]
mov cl, byte [edx + 2]
cmp al, cl
jge 0x5879c1
push 0
mov ecx, ebp
call fcn.00587270
neg al
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
dec eax
pop ebx
add esp, 0x10
ret 8
push 1
mov ecx, ebp
call fcn.00587270
neg al
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
dec eax
pop ebx
add esp, 0x10
ret 8
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x6351b0
push esi
call edi
add esp, 8
test eax, eax
jne 0x587a3f
push str.EQUIV__CNY
push esi
call edi
add esp, 8
test eax, eax
jne 0x587a3f
mov al, byte [ebp + 0x405d]
test al, al
jne 0x587a39
mov ecx, ebp
call fcn.00586b70
mov ecx, dword [ebp + 0x4070]
mov dword [ebp + 0x4060], eax
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0x4060]
add esp, 4
test eax, eax
mov dword [ebp + 0x4070], 0
jle 0x587a39
push eax
mov ecx, ebp
call fcn.00587a60
neg al
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
dec eax
pop ebx
add esp, 0x10
ret 8
push esi
jmp 0x5877ef
mov ecx, ebp
call fcn.00587c30
neg al
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
dec eax
pop ebx
add esp, 0x10
ret 8