Function at 0x47f3b0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
mov eax, ecx
push ebp
mov ebp, edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [eax]
mov dword [esp + 0xc], esi
mov eax, dword [edx]
mov ecx, eax
push edi
cmp word [esi], 0x28
mov edi, dword [esp + 0x34]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
jne 0x47f57b
movzx eax, word [esi + 2]
cmp eax, 0x2a
jne 0x47f408
add esi, 4
mov dword [esp + 0x10], esi
jmp 0x47f57b
cmp eax, 0x3f
je 0x47f42a
mov eax, ecx
inc eax
mov dword [edx], eax
test ebx, ebx
jne 0x47f41e
cmp eax, edi
je 0x47f848
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x47f57b
movzx eax, word [esi + 4]
cmp eax, 0x7c
jne 0x47f447
add esi, 6
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
jmp 0x47f57b
cmp eax, 0x23
jne 0x47f48a
add esi, 6
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x47f83f
nop
cmp ax, 0x29
je 0x47f83f
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
jne 0x47f460
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
add esi, 4
mov dword [esp + 0x10], esi
cmp eax, 0x28
jne 0x47f4e0
cmp word [esi + 2], 0x3f
je 0x47f57b
movzx eax, word [esi]
test ax, ax
je 0x47f57b
nop dword [eax]
cmp ax, 0x29
je 0x47f4ca
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
jne 0x47f4b0
jmp 0x47f57b
cmp word [esi], 0
je 0x47f57b
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x47f57b
cmp word [esi], 0x50
jne 0x47f4ed
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x3c
jne 0x47f503
movzx ecx, word [esi + 2]
cmp ecx, 0x21
je 0x47f503
cmp ecx, 0x3d
jne 0x47f508
cmp eax, 0x27
jne 0x47f577
mov edi, dword [esp + 0x18]
inc edi
test ebx, ebx
mov ebx, dword [esp + 0x34]
mov dword [edx], edi
jne 0x47f525
cmp edi, ebx
jne 0x47f525
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, eax
add esi, 2
cmp ecx, 0x3c
mov dword [esp + 0x10], esi
mov eax, 0x3e
mov edx, esi
cmove ecx, eax
movzx eax, word [esi]
cmp eax, ecx
je 0x47f550
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, ecx
jne 0x47f542
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47f56f
mov eax, esi
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x47f56f
push ebx
call fcn.00490560
add esp, 4
test eax, eax
je 0x47f51b
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
cmp esi, dword [ebp + 0x1c]
jae 0x47f83f
movzx eax, word [esi]
mov ebx, dword [esp + 0x38]
cmp eax, 0x5c
jne 0x47f5e4
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x47f83f
cmp eax, 0x51
jne 0x47f815
nop dword [eax]
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x47f83f
cmp eax, 0x5c
jne 0x47f5b0
cmp word [esi], 0
je 0x47f83f
add esi, 2
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x47f5b0
jmp 0x47f815
cmp eax, 0x5b
jne 0x47f6f3
xor ebp, ebp
nop
movzx eax, word [esi + 2]
cmp eax, 0x5c
jne 0x47f647
cmp word [esi + 4], 0x45
lea edx, [esi + 4]
jne 0x47f60b
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x47f5f0
mov ecx, 3
mov edi, 0x4d2f60
movzx ebx, word [edx]
lea edx, [edx + 2]
movzx eax, byte [edi]
lea edi, [edi + 1]
dec ecx
cmp ax, bx
jne 0x47f634
test ecx, ecx
jne 0x47f615
add esi, 8
mov dword [esp + 0x10], esi
jmp 0x47f5f0
sbb eax, eax
and eax, 2
add eax, 0xffffffff
jne 0x47f65c
add esi, 8
mov dword [esp + 0x10], esi
jmp 0x47f5f0
test ebp, ebp
jne 0x47f65c
cmp eax, 0x5e
jne 0x47f65c
add esi, 2
lea ebp, [eax - 0x5d]
mov dword [esp + 0x10], esi
jmp 0x47f5f0
cmp word [esi + 2], 0x5d
lea eax, [esi + 2]
mov ebp, dword [esp + 0x20]
jne 0x47f674
test dword [ebp + 0x4c], 0x2000000
cmove esi, eax
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x5d
je 0x47f815
test ax, ax
je 0x47f845
cmp ax, 0x5c
jne 0x47f6df
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x47f83f
cmp eax, 0x51
jne 0x47f6df
nop
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x47f83f
cmp eax, 0x5c
jne 0x47f6b0
cmp word [esi], 0
je 0x47f83f
add esi, 2
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x47f6b0
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x5d
jne 0x47f687
jmp 0x47f815
test ebx, ebx
je 0x47f7c7
cmp eax, 0x23
jne 0x47f7c7
add esi, 2
mov dword [esp + 0x10], esi
movzx edx, word [esi]
test dx, dx
je 0x47f83f
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x47f759
mov eax, dword [ebp + 0x1c]
cmp esi, eax
jae 0x47f780
push dword [esp + 0x3c]
lea ebx, [ebp + 0x64]
mov edx, ecx
push ebx
push eax
mov ecx, esi
call fcn.004905a0
add esp, 0xc
test eax, eax
je 0x47f780
mov eax, dword [ebx]
lea esi, [esi + eax*2]
add esi, 0xfffffffe
mov dword [esp + 0x10], esi
cmp word [esi], 0
je 0x47f83f
jmp 0x47f815
mov edi, dword [ebp + 0x64]
lea ebx, [ebp + 0x64]
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + edi]
sub ecx, eax
cmp esi, ecx
ja 0x47f780
cmp dx, word [ebp + 0x68]
jne 0x47f780
cmp edi, 1
je 0x47f73e
mov ax, word [esi + 2]
cmp ax, word [ebp + 0x6a]
je 0x47f73e
add esi, 2
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x10], esi
je 0x47f7aa
mov ax, word [esi]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x47f7aa
add esi, 2
mov dword [esp + 0x10], esi
movzx edx, word [esi]
test dx, dx
jne 0x47f717
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 0x28
jne 0x47f7f5
push edx
push dword [esp + 0x40]
mov edx, ebp
lea ecx, [esp + 0x18]
push ebx
push edi
push dword [esp + 0x40]
call fcn.0047f3b0
add esp, 0x14
test eax, eax
jg 0x47f848
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x47f83f
jmp 0x47f815
cmp eax, 0x29
je 0x47f832
cmp eax, 0x7c
jne 0x47f815
cmp dword [esp + 0x1c], 0
je 0x47f815
cmp dword [edx], ecx
mov eax, dword [esp + 0x18]
cmovg ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov dword [edx], eax
add esi, 2
mov dword [esp + 0x10], esi
cmp esi, dword [ebp + 0x1c]
jae 0x47f83f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
jmp 0x47f584
cmp dword [esp + 0x1c], 0
je 0x47f83f
cmp dword [edx], ecx
jge 0x47f83f
mov dword [edx], ecx
mov eax, dword [esp + 0x24]
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret