Function at 0x4251b0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [eax]
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 4], edi
cmp word [edi], 0x28
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jne 0x42520a
movzx ecx, word [edi + 2]
cmp ecx, 0x2a
jne 0x4251e9
add edi, 4
jmp 0x425207
cmp ecx, 0x3f
je 0x425275
inc eax
cmp dword [ebp + 0x10], 0
mov dword [esi], eax
jne 0x425204
cmp eax, dword [ebp + 0x14]
je 0x4255e1
add edi, 2
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0xc]
cmp edi, dword [ebx + 0x1c]
jae 0x4255d9
movzx eax, word [edi]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
cmp eax, 0x5c
jne 0x4253b2
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
cmp eax, 0x51
jne 0x4255b7
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
cmp eax, 0x5c
jne 0x425243
cmp word [edi], 0
je 0x4255d9
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x425243
jmp 0x4255b7
movzx ecx, word [edi + 4]
cmp ecx, 0x7c
jne 0x42528d
add edi, 6
mov dword [ebp - 0xc], 1
jmp 0x425207
cmp ecx, 0x23
jne 0x4252cb
add edi, 6
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
cmp ax, 0x29
je 0x4255d9
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x4252a4
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 4
mov dword [ebp - 4], edi
cmp ecx, 0x28
jne 0x425318
cmp word [edi + 2], 0x3f
je 0x42520a
movzx eax, word [edi]
test ax, ax
je 0x42520a
lea ecx, [ecx]
cmp ax, 0x29
je 0x425309
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x4252f0
jmp 0x42520a
cmp word [edi], 0
je 0x42520a
jmp 0x425204
cmp word [edi], 0x50
jne 0x425324
add edi, 2
mov dword [ebp - 4], edi
movzx ecx, word [edi]
cmp ecx, 0x3c
jne 0x42533a
movzx edx, word [edi + 2]
cmp edx, 0x21
je 0x42533a
cmp edx, 0x3d
jne 0x425343
cmp ecx, 0x27
jne 0x42520a
cmp dword [ebp + 0x10], 0
lea ebx, [eax + 1]
mov dword [esi], ebx
jne 0x425353
cmp ebx, dword [ebp + 0x14]
je 0x4253a9
movzx ecx, word [edi]
add edi, 2
mov dword [ebp - 4], edi
cmp ecx, 0x3c
jne 0x425366
mov ecx, 0x3e
movzx edx, word [edi]
mov eax, edi
cmp edx, ecx
je 0x42537d
nop
add edi, 2
mov dword [ebp - 4], edi
movzx edx, word [edi]
cmp edx, ecx
jne 0x425370
cmp dword [ebp + 0x10], 0
je 0x42520a
mov ecx, edi
sub ecx, eax
sar ecx, 1
cmp dword [ebp + 0x14], ecx
jne 0x42520a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.004312e0
test eax, eax
jne 0x42520a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x5b
jne 0x4254c6
mov dword [ebp - 0x10], 0
movzx eax, word [edi + 2]
cmp eax, 0x5c
jne 0x425416
cmp word [edi + 4], 0x45
lea ecx, [edi + 4]
jne 0x4253dc
mov edi, ecx
mov dword [ebp - 4], edi
jmp 0x4253c2
mov ebx, 3
mov esi, 0x4831a8
movzx eax, word [ecx]
movzx edx, byte [esi]
dec ebx
add ecx, 2
inc esi
cmp dx, ax
jne 0x425402
test ebx, ebx
jne 0x4253e6
add edi, 8
mov dword [ebp - 4], edi
jmp 0x4253c2
sbb eax, eax
neg eax
lea eax, [eax + eax - 1]
test eax, eax
jne 0x425430
add edi, 8
mov dword [ebp - 4], edi
jmp 0x4253c2
cmp dword [ebp - 0x10], 0
jne 0x425430
cmp eax, 0x5e
jne 0x425430
add edi, 2
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], edi
jmp 0x4253c2
cmp word [edi + 2], 0x5d
jne 0x425446
mov eax, dword [ebp + 0xc]
test dword [eax + 0x50], 0x2000000
jne 0x425446
add edi, 2
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
je 0x4255b7
jmp 0x425460
test ax, ax
je 0x4255de
cmp ax, 0x5c
jne 0x4254b3
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
cmp eax, 0x51
jne 0x4254b3
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
cmp eax, 0x5c
jne 0x425486
cmp word [edi], 0
je 0x4255d9
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x425486
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
jne 0x425460
jmp 0x4255b7
test ecx, ecx
je 0x42556a
cmp eax, 0x23
jne 0x42556a
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x4255d9
lea esp, [esp]
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x425529
mov edx, dword [ebx + 0x1c]
cmp edi, edx
jae 0x42554d
push ecx
lea esi, [ebx + 0x68]
mov ecx, edi
call fcn.00431370
add esp, 4
test eax, eax
je 0x42554d
mov ecx, dword [ebx + 0x68]
lea edi, [edi + ecx*2 - 2]
mov dword [ebp - 4], edi
cmp word [edi], 0
je 0x4255d9
jmp 0x4255b7
mov ecx, dword [ebx + 0x68]
mov esi, dword [ebx + 0x1c]
lea edx, [ecx + ecx]
sub esi, edx
cmp edi, esi
ja 0x42554d
cmp ax, word [ebx + 0x6c]
jne 0x42554d
cmp ecx, 1
je 0x425510
mov ax, word [edi + 2]
cmp ax, word [ebx + 0x6e]
je 0x425510
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x4254f0
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x28
jne 0x425599
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push esi
push edx
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 4]
push ebx
push edx
call fcn.004251b0
add esp, 0x1c
test eax, eax
jg 0x4255e1
mov edi, dword [ebp - 4]
cmp word [edi], 0
je 0x4255d9
jmp 0x4255b7
cmp eax, 0x29
je 0x4255cd
cmp eax, 0x7c
jne 0x4255b7
cmp dword [ebp - 0xc], 0
je 0x4255b7
mov eax, dword [esi]
cmp eax, edx
jle 0x4255b2
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov ebx, dword [ebp + 0xc]
add edi, 2
mov dword [ebp - 4], edi
cmp edi, dword [ebx + 0x1c]
jae 0x4255d9
mov esi, dword [ebp + 0x20]
jmp 0x425216
cmp dword [ebp - 0xc], 0
je 0x4255d9
cmp dword [esi], edx
jge 0x4255d9
mov dword [esi], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret