Function at 0x10034f80
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [ecx]
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 0x10034ffa
movzx ecx, word [edi + 2]
cmp ecx, 0x2a
jne 0x10034fd6
mov eax, dword [ebx + 0x1c]
add edi, 4
mov dword [ebp - 4], edi
cmp edi, eax
jae 0x10034ffa
cmp word [edi], 0x29
je 0x10034ffa
add edi, 2
mov dword [ebp - 4], edi
cmp edi, eax
jb 0x10034fc4
jmp 0x10034ffa
cmp ecx, 0x3f
je 0x10035065
mov edx, dword [ebp + 0x20]
inc eax
cmp dword [ebp + 0x10], 0
mov dword [edx], eax
jne 0x10034ff4
cmp eax, dword [ebp + 0x14]
je 0x100353c5
add edi, 2
mov dword [ebp - 4], edi
cmp edi, dword [ebx + 0x1c]
jae 0x100353bd
movzx eax, word [edi]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
cmp eax, 0x5c
jne 0x1003519c
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
cmp eax, 0x51
jne 0x100353a9
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
cmp eax, 0x5c
jne 0x10035033
cmp word [edi], 0
je 0x100353bd
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x10035033
mov ebx, dword [ebp + 0xc]
jmp 0x10034ff4
movzx ecx, word [edi + 4]
cmp ecx, 0x7c
jne 0x1003507d
add edi, 6
mov dword [ebp - 0xc], 1
jmp 0x10034ff7
cmp ecx, 0x23
jne 0x100350bb
add edi, 6
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
cmp ax, 0x29
je 0x100353bd
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x10035094
mov edx, dword [ebp + 8]
mov dword [edx], 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 0x10035108
cmp word [edi + 2], 0x3f
je 0x10034ffa
movzx eax, word [edi]
test ax, ax
je 0x10034ffa
lea ecx, [ecx]
cmp ax, 0x29
je 0x100350f9
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x100350e0
jmp 0x10034ffa
cmp word [edi], 0
je 0x10034ffa
jmp 0x10034ff4
cmp word [edi], 0x50
jne 0x10035114
add edi, 2
mov dword [ebp - 4], edi
movzx ecx, word [edi]
cmp ecx, 0x3c
jne 0x1003512a
movzx edx, word [edi + 2]
cmp edx, 0x21
je 0x1003512a
cmp edx, 0x3d
jne 0x10035133
cmp ecx, 0x27
jne 0x10034ffa
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
mov eax, dword [ebp + 0x20]
mov dword [eax], esi
test edx, edx
jne 0x10035147
cmp esi, dword [ebp + 0x14]
je 0x10035193
movzx ecx, word [edi]
add edi, 2
mov dword [ebp - 4], edi
cmp ecx, 0x3c
jne 0x1003515a
mov ecx, 0x3e
mov eax, edi
cmp word [edi], cx
je 0x1003516c
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], cx
jne 0x10035161
test edx, edx
je 0x10034ffa
mov ecx, edi
sub ecx, eax
sar ecx, 1
cmp dword [ebp + 0x14], ecx
jne 0x10034ffa
mov ecx, dword [ebp + 0x14]
call fcn.10041590
test eax, eax
jne 0x10034ffa
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x5b
jne 0x100352b3
mov dword [ebp - 0x10], 0
lea esp, [esp]
movzx eax, word [edi + 2]
cmp eax, 0x5c
jne 0x10035204
cmp word [edi + 4], 0x45
lea ecx, [edi + 4]
jne 0x100351ca
mov edi, ecx
mov dword [ebp - 4], edi
jmp 0x100351b0
mov ebx, 3
mov esi, 0x100571dc
movzx eax, word [ecx]
movzx edx, byte [esi]
dec ebx
add ecx, 2
inc esi
cmp dx, ax
jne 0x100351f0
test ebx, ebx
jne 0x100351d4
add edi, 8
mov dword [ebp - 4], edi
jmp 0x100351b0
sbb eax, eax
neg eax
lea eax, [eax + eax - 1]
test eax, eax
jne 0x1003521e
add edi, 8
mov dword [ebp - 4], edi
jmp 0x100351b0
cmp dword [ebp - 0x10], 0
jne 0x1003521e
cmp eax, 0x5e
jne 0x1003521e
add edi, 2
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], edi
jmp 0x100351b0
cmp word [edi + 2], 0x5d
jne 0x10035234
mov eax, dword [ebp + 0xc]
test dword [eax + 0x50], 0x2000000
jne 0x10035234
add edi, 2
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
je 0x100353a9
test ax, ax
je 0x100353c2
cmp ax, 0x5c
jne 0x1003529d
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
cmp eax, 0x51
jne 0x1003529d
lea esp, [esp]
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
cmp eax, 0x5c
jne 0x10035270
cmp word [edi], 0
je 0x100353bd
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x10035270
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
jne 0x10035246
mov ebx, dword [ebp + 0xc]
jmp 0x10034ff4
test ecx, ecx
je 0x10035353
cmp eax, 0x23
jne 0x10035353
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100353bd
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x10035312
mov edx, dword [ebx + 0x1c]
cmp edi, edx
jae 0x10035336
push ecx
lea esi, [ebx + 0x6c]
mov ecx, edi
call fcn.10041630
add esp, 4
test eax, eax
je 0x10035336
mov ecx, dword [ebx + 0x6c]
lea edi, [edi + ecx*2 - 2]
mov dword [ebp - 4], edi
cmp word [edi], 0
je 0x100353bd
mov ebx, dword [ebp + 0xc]
jmp 0x10034ff4
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebx + 0x1c]
lea edx, [ecx + ecx]
sub esi, edx
cmp edi, esi
ja 0x10035336
cmp ax, word [ebx + 0x70]
jne 0x10035336
cmp ecx, 1
je 0x100352f6
mov ax, word [edi + 2]
cmp ax, word [ebx + 0x72]
je 0x100352f6
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x100352d6
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x28
jne 0x1003538b
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push edx
lea eax, [ebp - 4]
push ebx
push eax
call fcn.10034f80
add esp, 0x1c
test eax, eax
jg 0x100353c5
mov edi, dword [ebp - 4]
cmp word [edi], 0
je 0x100353bd
mov ebx, dword [ebp + 0xc]
jmp 0x10034ff4
cmp eax, 0x29
je 0x100353b1
cmp eax, 0x7c
jne 0x100353a9
cmp dword [ebp - 0xc], 0
je 0x100353a9
mov eax, dword [edx]
cmp eax, esi
jle 0x100353a4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov ebx, dword [ebp + 0xc]
jmp 0x10034ff4
cmp dword [ebp - 0xc], 0
je 0x100353bd
cmp dword [edx], esi
jge 0x100353bd
mov dword [edx], esi
mov edx, dword [ebp + 8]
mov dword [edx], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret