Function at 0x4a6ac0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x30]
mov eax, ecx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x20], eax
mov esi, dword [eax]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
cmp word [esi], 0x28
push edi
mov dword [esp + 0x14], ebp
mov edi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
jne 0x4a6cb8
movzx eax, word [esi + 2]
cmp eax, 0x2a
jne 0x4a6b16
lea edi, [esi + 4]
mov esi, edi
mov dword [esp + 0x10], esi
jmp 0x4a6cb8
cmp eax, 0x3f
je 0x4a6b3d
cmp dword [esp + 0x2c], 0
lea eax, [ecx + 1]
mov dword [ebx], eax
jne 0x4a6b2f
cmp eax, edx
je 0x4a6f7c
lea edi, [esi + 2]
mov esi, edi
mov dword [esp + 0x10], esi
jmp 0x4a6cb8
movzx eax, word [esi + 4]
cmp eax, 0x7c
jne 0x4a6b5c
lea edi, [esi + 6]
mov dword [esp + 0x18], 1
mov esi, edi
mov dword [esp + 0x10], esi
jmp 0x4a6cb8
cmp eax, 0x23
jne 0x4a6bae
lea ecx, [esi + 6]
mov esi, ecx
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
mov edx, eax
nop dword [eax + eax]
cmp dx, 0x29
je 0x4a6f73
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4a6b80
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
add esi, 4
mov dword [esp + 0x10], esi
mov edi, esi
cmp eax, 0x28
jne 0x4a6c05
cmp word [esi + 2], 0x3f
je 0x4a6bfc
movzx edx, word [esi]
test dx, dx
je 0x4a6bed
mov ecx, esi
nop dword [eax]
mov edi, ecx
cmp dx, 0x29
je 0x4a6bed
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edi, esi
mov edx, eax
test ax, ax
jne 0x4a6bd0
cmp word [esi], 0
je 0x4a6bfc
lea esi, [edi + 2]
mov dword [esp + 0x10], esi
mov edi, esi
mov edx, dword [esp + 0x30]
jmp 0x4a6cb8
cmp word [esi], 0x50
jne 0x4a6c14
lea edi, [esi + 2]
mov esi, edi
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x3c
jne 0x4a6c2a
movzx ecx, word [esi + 2]
cmp ecx, 0x21
je 0x4a6c2a
cmp ecx, 0x3d
jne 0x4a6c33
cmp eax, 0x27
jne 0x4a6cb8
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
inc ebx
cmp dword [esp + 0x2c], 0
mov dword [ecx], ebx
jne 0x4a6c53
cmp ebx, edx
jne 0x4a6c53
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret
mov edx, eax
lea esi, [edi + 2]
cmp edx, 0x3c
mov dword [esp + 0x10], esi
mov eax, 0x3e
mov ebp, esi
cmove edx, eax
mov ecx, ebp
movzx eax, word [esi]
cmp eax, edx
je 0x4a6c82
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
cmp eax, edx
jne 0x4a6c72
cmp dword [esp + 0x2c], 0
mov edi, ecx
mov edx, dword [esp + 0x30]
je 0x4a6cb0
mov eax, ecx
sub eax, ebp
sar eax, 1
cmp edx, eax
jne 0x4a6cb0
mov ecx, dword [esp + 0x2c]
push edx
mov edx, ebp
call fcn.004b6f40
add esp, 4
test eax, eax
je 0x4a6c49
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
cmp edi, dword [ebp + 0x1c]
jae 0x4a6f73
mov ecx, dword [esp + 0x34]
movzx eax, word [esi]
cmp eax, 0x5c
jne 0x4a6d24
lea esi, [edi + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
cmp eax, 0x51
jne 0x4a6e8f
nop dword [eax]
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
cmp eax, 0x5c
jne 0x4a6cf0
cmp word [esi], 0
je 0x4a6f73
add esi, 2
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x4a6cf0
jmp 0x4a6e8f
cmp eax, 0x5b
jne 0x4a6e25
xor ebp, ebp
nop
movzx eax, word [esi + 2]
cmp eax, 0x5c
jne 0x4a6d74
cmp word [esi + 4], 0x45
lea edx, [esi + 4]
jne 0x4a6d4b
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x4a6d30
mov edi, 3
mov ebx, 0x4de088
movzx ecx, word [edx]
lea edx, [edx + 2]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec edi
cmp cx, ax
jne 0x4a6d89
test edi, edi
jne 0x4a6d55
add esi, 8
mov dword [esp + 0x10], esi
jmp 0x4a6d30
test ebp, ebp
jne 0x4a6d89
cmp eax, 0x5e
jne 0x4a6d89
add esi, 2
lea ebp, [eax - 0x5d]
mov dword [esp + 0x10], esi
jmp 0x4a6d30
cmp word [esi + 2], 0x5d
lea eax, [esi + 2]
mov ebp, dword [esp + 0x14]
jne 0x4a6da1
test dword [ebp + 0x4c], 0x2000000
cmove esi, eax
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x5d
je 0x4a6e8b
mov ecx, eax
test cx, cx
je 0x4a6f79
mov eax, esi
cmp cx, 0x5c
jne 0x4a6e12
add esi, 2
mov dword [esp + 0x10], esi
movzx ecx, word [esi]
test cx, cx
je 0x4a6f73
mov eax, esi
cmp ecx, 0x51
jne 0x4a6e12
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
cmp eax, 0x5c
jne 0x4a6de1
cmp word [esi], 0
je 0x4a6f73
add esi, 2
mov dword [esp + 0x10], esi
mov eax, esi
cmp word [esi], 0x45
jne 0x4a6de1
lea esi, [eax + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x5d
jne 0x4a6db6
jmp 0x4a6e8b
test ecx, ecx
je 0x4a6f06
cmp eax, 0x23
jne 0x4a6f06
lea esi, [edi + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
mov edi, esi
mov ecx, 0xfc00
mov edx, dword [ebp + 0x60]
mov ebx, eax
test edx, edx
je 0x4a6eae
mov eax, dword [ebp + 0x1c]
cmp edi, eax
jae 0x4a6ed7
push 1
lea ebx, [ebp + 0x64]
mov ecx, esi
push ebx
push eax
call fcn.004b7020
add esp, 0xc
test eax, eax
je 0x4a6ed2
mov edx, dword [ebx]
lea esi, [edx - 1]
lea esi, [edi + esi*2]
mov dword [esp + 0x10], esi
cmp word [esi], 0
je 0x4a6f73
mov ecx, dword [esp + 0x34]
add esi, 2
mov edi, esi
mov dword [esp + 0x10], esi
cmp edi, dword [ebp + 0x1c]
jae 0x4a6f73
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
jmp 0x4a6cc5
mov edx, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x1c]
lea eax, [edx + edx]
sub ecx, eax
cmp edi, ecx
ja 0x4a6ed2
cmp bx, word [ebp + 0x68]
jne 0x4a6ed2
cmp edx, 1
je 0x4a6e77
mov ax, word [esi + 2]
cmp ax, word [ebp + 0x6a]
je 0x4a6e77
mov ecx, 0xfc00
lea esi, [edi + 2]
mov edx, 0xdc00
mov dword [esp + 0x10], esi
mov edi, esi
mov ax, word [esi]
and ax, cx
cmp ax, dx
jne 0x4a6ef9
lea edi, [esi + 2]
mov esi, edi
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4a6f73
jmp 0x4a6e50
cmp eax, 0x28
jne 0x4a6f2f
push ebx
push 1
push ecx
push edx
push dword [esp + 0x3c]
mov edx, ebp
lea ecx, [esp + 0x24]
call fcn.004a6ac0
add esp, 0x14
test eax, eax
jg 0x4a6f7c
mov esi, dword [esp + 0x10]
jmp 0x4a6e81
cmp eax, 0x29
je 0x4a6f62
cmp eax, 0x7c
jne 0x4a6e8f
cmp dword [esp + 0x18], 0
je 0x4a6e8f
mov eax, dword [ebx]
cmp eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmovle eax, dword [esp + 0x1c]
mov dword [ebx], edx
mov dword [esp + 0x1c], eax
jmp 0x4a6e8f
cmp dword [esp + 0x18], 0
je 0x4a6f73
mov eax, dword [esp + 0x1c]
cmp dword [ebx], eax
jge 0x4a6f73
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret