Function at 0x51c830
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
mov cl, byte [edi]
movzx eax, cl
add eax, 0xffffffde
cmp eax, 0x58
ja case.0x51c853.35
movzx eax, byte [eax + 0x51cb44]
jmp dword [eax*4 + 0x51cb28]
xor edi, edi
cmp cl, 0x22
je 0x51c878
push 0x17c
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_sfparse.c
push 0x591ef4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
add esp, 0xc
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [esi]
inc ebx
mov dword [esi], ebx
cmp ebx, edx
je case.default.0x51c899
mov ecx, ebx
movzx eax, byte [ecx]
add eax, 0xffffffe0
cmp eax, 0x5e
ja case.default.0x51c899
movzx eax, byte [eax + 0x51cbac]
jmp dword [eax*4 + 0x51cba0]
lea eax, [ecx + 1]
mov dword [esi], eax
cmp eax, edx
je case.default.0x51c899
mov al, byte [eax]
cmp al, 0x22
je 0x51c8b3
cmp al, 0x5c
jne case.default.0x51c899
mov edi, 1
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
cmp ecx, edx
jne 0x51c887
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x51c8ee
mov dword [ecx], 3
mov dword [ecx + 4], edi
mov eax, dword [esi]
sub eax, ebx
mov dword [ecx + 0xc], eax
mov eax, 0
cmove ebx, eax
mov dword [ecx + 8], ebx
inc dword [esi]
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x18
ret
push dword [esp + 0x28]
push esi
call fcn.0051d2e0
add esp, 8
pop edi
pop esi
add esp, 0x18
ret
cmp cl, 0x40
je 0x51c928
push 0x15e
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_sfparse.c
push 0x591ed0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
add esp, 0xc
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi + 4]
je case.0x51c853.35
lea eax, [esp + 8]
push eax
push esi
call fcn.0051d2e0
add esp, 8
test eax, eax
jne 0x51c9c9
cmp dword [esp + 8], 1
jne case.0x51c853.35
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51c974
movups xmm0, xmmword [esp + 8]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x18]
movq qword [eax + 0x10], xmm0
mov dword [eax], 7
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
cmp cl, 0x3a
je 0x51c998
push 0x1d9
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_sfparse.c
push str.:__sfp__pos
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
add esp, 0xc
mov edx, dword [esi]
mov edi, dword [esi + 4]
inc edx
mov dword [esi], edx
cmp edx, edi
je case.0x51c853.35
mov ecx, edx
movzx eax, byte [ecx]
add eax, 0xffffffd5
cmp eax, 0x4f
ja case.0x51c853.35
movzx eax, byte [eax + 0x51cc1c]
jmp dword [eax*4 + 0x51cc0c]
inc ecx
mov dword [esi], ecx
cmp ecx, edi
jne 0x51c9a6
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x18
ret
mov eax, ecx
sub eax, edx
and eax, 3
jmp dword [eax*4 + 0x51cc6c]
sub ecx, edx
test cl, 3
jne case.0x51c853.35
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x51ca62
mov dword [ecx], 5
mov dword [ecx + 4], 0
mov eax, dword [esi]
sub eax, edx
mov dword [ecx + 0xc], eax
mov eax, 0
cmove edx, eax
mov dword [ecx + 8], edx
inc dword [esi]
xor eax, eax
pop edi
pop esi
add esp, 0x18
ret
cmp cl, 0x3f
je 0x51ca88
push 0x23a
push str.C:Program_Files_vcpkg_buildtrees_nghttp2_src_v1.58.0_703032154d.cleanlib_sfparse.c
push str.___sfp__pos
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
add esp, 0xc
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi + 4]
je case.0x51c853.35
movzx ecx, byte [eax]
sub ecx, 0x30
je 0x51caae
sub ecx, 1
jne case.0x51c853.35
mov ecx, 1
jmp 0x51cab0
xor ecx, ecx
inc eax
mov dword [esi], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51cacb
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
mov edx, dword [esi + 4]
lea ecx, [edi + 1]
mov dword [esi], ecx
cmp ecx, edx
je case.0x51caf2.34
nop
movzx eax, byte [ecx]
add eax, 0xffffffdf
cmp eax, 0x5d
ja case.0x51caf2.34
movzx eax, byte [eax + 0x51cd14]
jmp dword [eax*4 + 0x51cd0c]
inc ecx
mov dword [esi], ecx
cmp ecx, edx
jne 0x51cae0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x51cb1f
mov dword [ecx], 4
mov dword [ecx + 4], 0
mov dword [ecx + 8], edi
mov eax, dword [esi]
sub eax, edi
mov dword [ecx + 0xc], eax
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret