Function at 0x4be820
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4bea91
cmp eax, 0x7c
je 0x4bea91
cmp eax, 0x29
jne 0x4be85c
cmp dword [esi + 0x10], 0
jne 0x4bea91
test dword [esi + 0x50], 0x10000000
je 0x4beaa8
cmp eax, 0x2e
jne 0x4be8c4
lea ecx, [esi + 0x24]
push 5
call fcn.004beb00
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x4be8b8
cmp word [eax], 0x5c
jne 0x4be8b3
lea ecx, [eax + 2]
cmp ecx, edx
je 0x4be8ac
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x4be896
movzx edi, word [ecx]
cmp edi, 0x28
je 0x4be8a8
cmp edi, 0x29
je 0x4be8a8
test dl, 0x10
jne 0x4be8ac
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x4be8a8
cmp edx, 0x7d
jne 0x4be8ac
mov dl, 1
jmp 0x4be8ae
xor dl, dl
test dl, dl
cmovne eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.004bc260
jmp 0x4bea7c
cmp eax, 0x5c
jne 0x4be92b
mov ecx, esi
call fcn.004be7d0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4be8f7
cmp word [esi + 0x48], 0x62
jne 0x4be8f7
lea ecx, [esi + 0x24]
push 4
call fcn.004beb00
mov ecx, esi
call fcn.004be7d0
jmp 0x4bea83
test eax, eax
je 0x4be91f
cmp word [esi + 0x48], 0x42
jne 0x4be91f
lea ecx, [esi + 0x24]
push 4
call fcn.004beb00
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004be7d0
jmp 0x4bea83
mov ecx, esi
call fcn.004c15a0
jmp 0x4bea7c
cmp eax, 0x5b
jne 0x4be9dc
mov ecx, esi
call fcn.004be7d0
lea ecx, [esi + 0x24]
call fcn.004c3090
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x4be95c
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004be7d0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x4be9c6
cmp eax, 0x5d
jne 0x4be9c6
test dword [esi + 0x2c], 0x100
mov ebx, eax
je 0x4be984
mov eax, dword [esi + 0x30]
push ebx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
movzx ebx, ax
mov edi, dword [esi + 0x28]
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x4be9aa
push 0x20
call fcn.00669f3d
xorps xmm0, xmm0
mov dword [ebp - 4], eax
add esp, 4
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [edi + 0x18], eax
movzx edx, bx
mov eax, edx
and edx, 7
shr eax, 3
add ecx, eax
movzx eax, byte [ecx]
bts eax, edx
mov byte [ecx], al
mov ecx, esi
call fcn.004be7d0
mov ecx, esi
call fcn.004c2b20
cmp dword [esi + 0x4c], 0x5d
jne 0x4beaa1
jmp 0x4bea75
cmp eax, 0x28
jne 0x4bea08
mov ecx, esi
call fcn.004be7d0
mov ecx, esi
call fcn.004c1730
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4beaa8
mov ecx, esi
call fcn.004be7d0
test bl, bl
je 0x4bea83
jmp 0x4bea7c
cmp eax, 0x5e
jne 0x4bea20
lea ecx, [esi + 0x24]
push 2
call fcn.004beb00
mov ecx, esi
call fcn.004be7d0
jmp 0x4bea83
cmp eax, 0x24
jne 0x4bea38
lea ecx, [esi + 0x24]
push 3
call fcn.004beb00
mov ecx, esi
call fcn.004be7d0
jmp 0x4bea83
cmp eax, 0x2a
je 0x4bea9a
cmp eax, 0x2b
je 0x4bea9a
cmp eax, 0x3f
je 0x4bea9a
cmp eax, 0x7b
je 0x4bea9a
cmp eax, 0x7d
jne 0x4bea5a
test dword [esi + 0x50], 0x10000000
je 0x4beaaf
cmp eax, 0x5d
jne 0x4bea68
test dword [esi + 0x50], 0x10000000
je 0x4beaa1
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004c1990
mov ecx, esi
call fcn.004be7d0
mov ecx, esi
call fcn.004c1830
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4be837
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
call fcn.004bc250
push 4
call fcn.004bc250
push 5
call fcn.004bc250
push 6
call fcn.004bc250
int3