Function at 0x100372c0
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 0x1003733a
movzx ecx, word [edi + 2]
cmp ecx, 0x2a
jne 0x10037316
mov eax, dword [ebx + 0x1c]
add edi, 4
mov dword [ebp - 4], edi
cmp edi, eax
jae 0x1003733a
cmp word [edi], 0x29
je 0x1003733a
add edi, 2
mov dword [ebp - 4], edi
cmp edi, eax
jb 0x10037304
jmp 0x1003733a
cmp ecx, 0x3f
je 0x100373a5
mov edx, dword [ebp + 0x20]
inc eax
cmp dword [ebp + 0x10], 0
mov dword [edx], eax
jne 0x10037334
cmp eax, dword [ebp + 0x14]
je 0x10037705
add edi, 2
mov dword [ebp - 4], edi
cmp edi, dword [ebx + 0x1c]
jae 0x100376fd
movzx eax, word [edi]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
cmp eax, 0x5c
jne 0x100374dc
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
cmp eax, 0x51
jne 0x100376e9
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
cmp eax, 0x5c
jne 0x10037373
cmp word [edi], 0
je 0x100376fd
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x10037373
mov ebx, dword [ebp + 0xc]
jmp 0x10037334
movzx ecx, word [edi + 4]
cmp ecx, 0x7c
jne 0x100373bd
add edi, 6
mov dword [ebp - 0xc], 1
jmp 0x10037337
cmp ecx, 0x23
jne 0x100373fb
add edi, 6
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
cmp ax, 0x29
je 0x100376fd
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x100373d4
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 0x10037448
cmp word [edi + 2], 0x3f
je 0x1003733a
movzx eax, word [edi]
test ax, ax
je 0x1003733a
lea ecx, [ecx]
cmp ax, 0x29
je 0x10037439
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x10037420
jmp 0x1003733a
cmp word [edi], 0
je 0x1003733a
jmp 0x10037334
cmp word [edi], 0x50
jne 0x10037454
add edi, 2
mov dword [ebp - 4], edi
movzx ecx, word [edi]
cmp ecx, 0x3c
jne 0x1003746a
movzx edx, word [edi + 2]
cmp edx, 0x21
je 0x1003746a
cmp edx, 0x3d
jne 0x10037473
cmp ecx, 0x27
jne 0x1003733a
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
mov eax, dword [ebp + 0x20]
mov dword [eax], esi
test edx, edx
jne 0x10037487
cmp esi, dword [ebp + 0x14]
je 0x100374d3
movzx ecx, word [edi]
add edi, 2
mov dword [ebp - 4], edi
cmp ecx, 0x3c
jne 0x1003749a
mov ecx, 0x3e
mov eax, edi
cmp word [edi], cx
je 0x100374ac
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], cx
jne 0x100374a1
test edx, edx
je 0x1003733a
mov ecx, edi
sub ecx, eax
sar ecx, 1
cmp dword [ebp + 0x14], ecx
jne 0x1003733a
mov ecx, dword [ebp + 0x14]
call fcn.100438d0
test eax, eax
jne 0x1003733a
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x5b
jne 0x100375f3
mov dword [ebp - 0x10], 0
lea esp, [esp]
movzx eax, word [edi + 2]
cmp eax, 0x5c
jne 0x10037544
cmp word [edi + 4], 0x45
lea ecx, [edi + 4]
jne 0x1003750a
mov edi, ecx
mov dword [ebp - 4], edi
jmp 0x100374f0
mov ebx, 3
mov esi, 0x1005a46c
movzx eax, word [ecx]
movzx edx, byte [esi]
dec ebx
add ecx, 2
inc esi
cmp dx, ax
jne 0x10037530
test ebx, ebx
jne 0x10037514
add edi, 8
mov dword [ebp - 4], edi
jmp 0x100374f0
sbb eax, eax
neg eax
lea eax, [eax + eax - 1]
test eax, eax
jne 0x1003755e
add edi, 8
mov dword [ebp - 4], edi
jmp 0x100374f0
cmp dword [ebp - 0x10], 0
jne 0x1003755e
cmp eax, 0x5e
jne 0x1003755e
add edi, 2
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], edi
jmp 0x100374f0
cmp word [edi + 2], 0x5d
jne 0x10037574
mov eax, dword [ebp + 0xc]
test dword [eax + 0x50], 0x2000000
jne 0x10037574
add edi, 2
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
je 0x100376e9
test ax, ax
je 0x10037702
cmp ax, 0x5c
jne 0x100375dd
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
cmp eax, 0x51
jne 0x100375dd
lea esp, [esp]
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
cmp eax, 0x5c
jne 0x100375b0
cmp word [edi], 0
je 0x100376fd
add edi, 2
mov dword [ebp - 4], edi
cmp word [edi], 0x45
jne 0x100375b0
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
cmp eax, 0x5d
jne 0x10037586
mov ebx, dword [ebp + 0xc]
jmp 0x10037334
test ecx, ecx
je 0x10037693
cmp eax, 0x23
jne 0x10037693
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
je 0x100376fd
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x10037652
mov edx, dword [ebx + 0x1c]
cmp edi, edx
jae 0x10037676
push ecx
lea esi, [ebx + 0x6c]
mov ecx, edi
call fcn.10043970
add esp, 4
test eax, eax
je 0x10037676
mov ecx, dword [ebx + 0x6c]
lea edi, [edi + ecx*2 - 2]
mov dword [ebp - 4], edi
cmp word [edi], 0
je 0x100376fd
mov ebx, dword [ebp + 0xc]
jmp 0x10037334
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebx + 0x1c]
lea edx, [ecx + ecx]
sub esi, edx
cmp edi, esi
ja 0x10037676
cmp ax, word [ebx + 0x70]
jne 0x10037676
cmp ecx, 1
je 0x10037636
mov ax, word [edi + 2]
cmp ax, word [ebx + 0x72]
je 0x10037636
add edi, 2
mov dword [ebp - 4], edi
movzx eax, word [edi]
test ax, ax
jne 0x10037616
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 0x100376cb
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.100372c0
add esp, 0x1c
test eax, eax
jg 0x10037705
mov edi, dword [ebp - 4]
cmp word [edi], 0
je 0x100376fd
mov ebx, dword [ebp + 0xc]
jmp 0x10037334
cmp eax, 0x29
je 0x100376f1
cmp eax, 0x7c
jne 0x100376e9
cmp dword [ebp - 0xc], 0
je 0x100376e9
mov eax, dword [edx]
cmp eax, esi
jle 0x100376e4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov ebx, dword [ebp + 0xc]
jmp 0x10037334
cmp dword [ebp - 0xc], 0
je 0x100376fd
cmp dword [edx], esi
jge 0x100376fd
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