Function at 0x589de4
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x665b4c]
movsx edx, byte [eax]
push ebx
xor ebx, ebx
mov ecx, 0xfffffe00
and dword [ebp - 4], ecx
and dword [ebp - 0xc], ecx
push esi
xor esi, esi
inc eax
cmp edx, 0x41
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x665b4c], eax
jg 0x589f3b
je 0x58a28a
cmp edx, ebx
je 0x589f2e
cmp edx, 0x2f
jle 0x58a09b
cmp edx, 0x31
jle 0x589e50
cmp edx, 0x39
jg 0x58a09b
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd1d0]
jmp 0x58a1ee
and dword [ebp - 0xc], ecx
cmp byte [ebp + 0xc], bl
mov dword [ebp - 0x10], ebx
je 0x589ec3
lea eax, [ebp - 0x88]
push eax
call fcn.00589c20
push eax
lea eax, [ebp - 0x90]
push 0x3c
push eax
call fcn.005890e3
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
call fcn.00588cea
lea ecx, [ebp - 0x10]
call fcn.00588589
cmp al, 0x3e
jne 0x589e98
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00588eca
push 0x3e
lea ecx, [ebp - 0x10]
call fcn.00588eca
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x589eac
mov byte [eax], 1
mov eax, dword [0x665b4c]
cmp byte [eax], bl
jne 0x589ebd
lea eax, [ebp - 0x10]
jmp 0x58a223
inc eax
mov dword [0x665b4c], eax
mov esi, eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0058a410
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.005882a3
lea ecx, [ebp - 8]
mov dword [0x665b4c], esi
call fcn.0058853b
test eax, eax
jne 0x589f0d
cmp byte [esi - 1], 0x31
jne 0x589f0d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x68]
push 0x7e
push eax
call fcn.005890e3
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.005882a3
lea ecx, [ebp - 0x10]
call fcn.0058853b
test eax, eax
jne 0x58a220
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00588cea
jmp 0x58a220
dec eax
mov dword [0x665b4c], eax
push 2
jmp 0x58a09d
cmp edx, 0x42
je 0x58a287
jle 0x58a09b
cmp edx, 0x5a
jle 0x58a28a
cmp edx, 0x5f
jne 0x58a09b
movsx ecx, byte [eax]
inc eax
cmp ecx, 0x50
mov dword [0x665b4c], eax
jg 0x58a070
je 0x58a01c
cmp ecx, 0x3f
jg 0x589fd8
je 0x589fb6
cmp ecx, ebx
je 0x589f2e
cmp ecx, 0x2f
jle 0x58a09b
cmp ecx, 0x36
jle 0x589fa6
cmp ecx, 0x39
jg 0x58a09b
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd260]
jmp 0x58a27d
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd260]
jmp 0x58a1ee
movsx ecx, byte [eax]
inc eax
cmp ecx, ebx
mov dword [0x665b4c], eax
je 0x589f2e
cmp ecx, 0x30
jne 0x58a09b
push ebx
push 0x5dd964
jmp 0x58a004
cmp ecx, 0x41
jl 0x58a09b
cmp ecx, 0x42
jle 0x58a272
cmp ecx, 0x43
je 0x589ffd
jle 0x58a09b
cmp ecx, 0x4f
jmp 0x58a095
push 1
push 0x5dd724
lea eax, [ebp - 0x18]
push eax
call fcn.005897df
add esp, 0xc
or byte [ebp - 0x13], 1
lea eax, [ebp - 0x18]
jmp 0x58a223
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd244]
lea ecx, [ebp - 8]
call fcn.00588d67
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00589de4
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.005882a3
lea ecx, [ebp - 0x10]
call fcn.0058853b
test eax, eax
jne 0x58a061
call fcn.0058853b
test eax, eax
jne 0x58a061
test byte [ebp - 0xc], 0x40
jne 0x58a09b
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 8]
jmp 0x58a1dc
cmp ecx, 0x56
jg 0x58a233
cmp ecx, 0x55
jge 0x58a1e3
cmp ecx, 0x51
je 0x58a1f6
cmp ecx, 0x52
je 0x58a0aa
jle 0x58a09b
cmp ecx, 0x54
jle 0x58a272
push 1
mov ecx, dword [ebp + 8]
call fcn.005884c4
jmp 0x58a22c
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd244]
lea ecx, [ebp - 8]
call fcn.00588d67
mov eax, dword [0x665b4c]
movsx eax, byte [eax]
push dword [eax*4 + 0x5dd300]
lea ecx, [ebp - 0x10]
call fcn.00588d67
mov eax, dword [0x665b4c]
movsx eax, byte [eax]
inc dword [0x665b4c]
cmp eax, 0x30
je 0x58a1aa
cmp eax, 0x31
je 0x58a106
jle 0x58a0fb
cmp eax, 0x34
jle 0x58a061
dec dword [0x665b4c]
jmp 0x589f34
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.00588e6a
push 0x2c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0058987f
pop ecx
mov ecx, eax
call fcn.00589149
push eax
lea ecx, [ebp - 0x18]
call fcn.00588cea
push 0x2c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0058987f
pop ecx
mov ecx, eax
call fcn.00589149
push eax
lea ecx, [ebp - 0x18]
call fcn.00588cea
push 0x2c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0058987f
pop ecx
mov ecx, eax
call fcn.00589149
push eax
lea ecx, [ebp - 0x18]
call fcn.00588cea
push 0x29
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.005891c1
pop ecx
pop ecx
mov ecx, eax
call fcn.00589149
push eax
lea ecx, [ebp - 0x18]
call fcn.00588cea
push 0x27
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00589149
jmp 0x58a22c
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0058c79f
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x20
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00589149
mov ecx, eax
call fcn.00588e6a
mov ecx, eax
call fcn.00588e6a
jmp 0x58a22c
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd244]
lea ecx, [ebp - 8]
call fcn.00588d67
lea ecx, [ebp - 8]
call fcn.0058853b
test eax, eax
jne 0x58a220
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x5dd7e0
push eax
call fcn.00589127
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.005882a3
lea eax, [ebp - 8]
mov ecx, dword [ebp + 8]
push eax
call fcn.0058823a
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret
cmp ecx, 0x58
jl 0x58a09b
cmp ecx, 0x59
jle 0x58a272
cmp ecx, 0x5f
jne 0x58a09b
movsx ecx, byte [eax]
inc eax
cmp ecx, 0x41
mov dword [0x665b4c], eax
jl 0x58a09b
cmp ecx, 0x44
jg 0x58a09b
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd2a8]
jmp 0x58a27d
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd244]
mov ecx, dword [ebp + 8]
call fcn.00588ab3
jmp 0x58a22c
xor esi, esi
inc esi
movsx eax, byte [eax - 1]
push dword [eax*4 + 0x5dd1b4]
lea ecx, [ebp - 8]
call fcn.00588d67
cmp esi, ebx
je 0x58a1f6
lea ecx, [ebp - 8]
call fcn.0058853b
test eax, eax
jne 0x58a220
or dword [ebp - 4], 0x20
jmp 0x58a220