Function at 0x489670
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
mov eax, ecx
push ebp
mov ebp, edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x34]
push esi
mov esi, dword [eax]
push edi
mov eax, dword [edx]
mov edi, eax
mov dword [esp + 0x10], esi
cmp word [esi], 0x28
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
jne 0x48985c
movzx eax, word [esi + 2]
cmp eax, 0x2a
jne 0x4896c4
add esi, 4
mov dword [esp + 0x10], esi
jmp 0x48985c
cmp eax, 0x3f
je 0x4896e9
mov eax, edi
inc eax
cmp dword [esp + 0x2c], 0
mov dword [edx], eax
jne 0x4896dd
cmp eax, ebx
je 0x489b45
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x48985c
movzx eax, word [esi + 4]
lea ecx, [esi + 4]
cmp eax, 0x7c
jne 0x489709
add esi, 6
mov dword [esp + 0x20], 1
mov dword [esp + 0x10], esi
jmp 0x48985c
cmp eax, 0x23
jne 0x489753
lea ecx, [esi + 6]
mov esi, ecx
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x489b3c
mov edx, eax
cmp dx, 0x29
je 0x489b3c
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x489725
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, ecx
mov dword [esp + 0x10], esi
cmp eax, 0x28
jne 0x4897a1
cmp word [esi + 2], 0x3f
je 0x48985c
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x489858
cmp dx, 0x29
je 0x489795
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x489777
jmp 0x489858
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x489858
cmp word [esi], 0x50
jne 0x4897ae
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x3c
jne 0x4897ca
movzx eax, word [esi + 2]
cmp eax, 0x21
je 0x48985c
cmp eax, 0x3d
jne 0x4897d3
cmp ecx, 0x27
jne 0x48985c
mov ebp, edi
inc ebp
cmp dword [esp + 0x2c], 0
mov dword [edx], ebp
jne 0x4897e3
cmp ebp, ebx
je 0x489846
add esi, 2
mov edx, ecx
cmp edx, 0x3c
mov dword [esp + 0x10], esi
mov eax, 0x3e
mov edi, esi
cmove edx, eax
mov ecx, edi
movzx eax, word [esi]
cmp eax, edx
je 0x489812
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
cmp eax, edx
jne 0x489802
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x489850
sub ecx, edi
sar ecx, 1
cmp ebx, ecx
jne 0x489850
mov edx, ebx
mov ebx, eax
test edx, edx
jbe 0x489846
nop word [eax + eax]
movzx ecx, word [ebx]
lea ebx, [ebx + 2]
movzx eax, word [edi]
lea edi, [edi + 2]
dec edx
cmp cx, ax
jne 0x489850
test edx, edx
jne 0x489830
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x1c]
cmp esi, ecx
jae 0x489b3c
mov ebx, dword [esp + 0x34]
nop dword [eax + eax]
movzx eax, word [esi]
cmp eax, 0x5c
jne 0x4898c0
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x489b3c
cmp eax, 0x51
jne 0x4899c9
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
test ax, ax
je 0x489b3c
cmp eax, 0x5c
jne 0x489894
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x489894
jmp 0x4899c9
cmp eax, 0x5b
jne 0x4899e8
xor ebp, ebp
nop dword [eax + eax]
movzx eax, word [esi + 2]
lea ecx, [esi + 2]
cmp eax, 0x5c
jne 0x48991f
cmp word [esi + 4], 0x45
lea edx, [esi + 4]
jne 0x4898ee
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x4898d0
mov edi, 3
mov ebx, 0x4dc87c
nop dword [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec edi
cmp cx, ax
jne 0x489946
test edi, edi
jne 0x489900
add esi, 8
mov dword [esp + 0x10], esi
jmp 0x4898d0
test ebp, ebp
jne 0x489933
cmp eax, 0x5e
jne 0x489933
mov esi, ecx
lea ebp, [eax - 0x5d]
mov dword [esp + 0x10], esi
jmp 0x4898d0
cmp eax, 0x5d
jne 0x489946
mov eax, dword [esp + 0x14]
test dword [eax + 0x4c], 0x2000000
cmove esi, ecx
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x5d
je 0x4899c1
mov ecx, eax
mov edx, esi
nop dword [eax]
test cx, cx
je 0x489b42
cmp cx, 0x5c
jne 0x4899ae
lea esi, [edx + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x489b3c
cmp eax, 0x51
jne 0x4899ae
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
test ax, ax
je 0x489b3c
cmp eax, 0x5c
jne 0x489987
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x489987
add esi, 2
mov dword [esp + 0x10], esi
mov edx, esi
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x5d
jne 0x489960
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
add esi, 2
mov dword [esp + 0x10], esi
cmp esi, ecx
jae 0x489b3c
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
jmp 0x489870
test ebx, ebx
je 0x489ace
cmp eax, 0x23
jne 0x489ace
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x489ac3
mov edi, esi
mov ebp, esi
mov ebx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x60]
test edx, edx
je 0x489a59
mov ebp, eax
mov ecx, dword [ebp + 0x1c]
cmp edi, ecx
lea edi, [ebp + 0x64]
jae 0x489a45
push 1
push edi
push ecx
mov ecx, esi
call fcn.0049ba70
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x489a45
mov eax, 1
jmp 0x489a47
xor eax, eax
test eax, eax
je 0x489a84
mov eax, dword [edi]
lea esi, [esi + eax*2]
add esi, 0xfffffffe
mov dword [esp + 0x10], esi
jmp 0x489abf
mov edx, dword [eax + 0x64]
lea edi, [eax + 0x64]
lea eax, [edx + edx]
sub ecx, eax
cmp ebp, ecx
mov ebp, dword [esp + 0x14]
ja 0x489a81
cmp bx, word [ebp + 0x68]
jne 0x489a81
cmp edx, 1
je 0x489a4b
mov ax, word [esi + 2]
cmp ax, word [ebp + 0x6a]
je 0x489a4b
mov ecx, dword [ebp + 0x1c]
add esi, 2
mov edx, 0xfc00
mov dword [esp + 0x10], esi
mov edi, esi
mov ax, word [esi]
and ax, dx
mov edx, 0xdc00
cmp ax, dx
jne 0x489aab
lea esi, [edi + 2]
mov dword [esp + 0x10], esi
mov edi, esi
movzx eax, word [esi]
mov ebp, edi
mov ebx, eax
test ax, ax
jne 0x489a12
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
cmp word [esi], 0
je 0x489b3c
jmp 0x4899c9
cmp eax, 0x28
jne 0x489b00
push edx
push 1
push ebx
push dword [esp + 0x3c]
mov edx, ebp
lea ecx, [esp + 0x20]
push dword [esp + 0x3c]
call fcn.00489670
add esp, 0x14
test eax, eax
jg 0x489b45
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x489b3c
jmp 0x4899c9
cmp eax, 0x29
je 0x489b2f
cmp eax, 0x7c
jne 0x4899c9
cmp dword [esp + 0x20], 0
je 0x4899c9
mov eax, dword [edx]
cmp eax, edi
mov ecx, dword [esp + 0x1c]
cmovle eax, edi
mov dword [edx], ecx
mov dword [esp + 0x18], eax
jmp 0x4899c9
cmp dword [esp + 0x20], 0
je 0x489b3c
cmp dword [edx], edi
jge 0x489b3c
mov dword [edx], edi
mov eax, dword [esp + 0x24]
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret