Function at 0x51f3d0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x51f3f3
xor edi, edi
jmp 0x51f40a
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x51f3f8
sub edi, ecx
mov ecx, dword [ebp - 4]
and edi, 0x3fffffff
test cl, 0x40
jne 0x51f41c
cmp byte [0x5ac1ce], 0
je 0x51f903
cmp edi, 5
jb 0x51f903
cmp dword [esi], 0x656c6966
jne 0x51f903
cmp byte [esi + 4], 0x3a
jne 0x51f903
or ecx, 0x40
mov dword [ebp - 8], 0
xor edx, edx
mov dword [ebp - 4], ecx
lea ebx, [edi + 8]
xor eax, eax
nop
cmp byte [eax + esi], 0x26
jne 0x51f45d
mov ecx, 1
jmp 0x51f45f
xor ecx, ecx
add ebx, ecx
adc edx, 0
inc eax
cmp eax, edi
jl 0x51f450
mov dword [ebp + 0xc], edx
call fcn.00544fc0
test eax, eax
jne 0x51f94b
push dword [ebp + 0xc]
push ebx
call fcn.0051c920
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51f94b
mov dword [ebx], 0
mov eax, 5
add ebx, 4
cmp byte [esi + 5], 0x2f
mov dword [ebp + 0xc], ebx
jne 0x51f513
cmp byte [esi + 6], 0x2f
jne 0x51f513
mov cl, byte [esi + 7]
lea edx, [esi + 7]
mov eax, 7
test cl, cl
je 0x51f513
jmp 0x51f4c0
cmp cl, 0x2f
je 0x51f4ce
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f4c0
cmp eax, 7
je 0x51f513
cmp eax, 0x10
jne 0x51f4f5
mov ecx, 0x61636f6c
cmp ecx, dword [edx]
jne 0x51f4f5
mov ecx, 0x736f686c
cmp ecx, dword [edx + 4]
jne 0x51f4f5
mov ecx, 0x74
cmp cl, byte [edx + 8]
je 0x51f513
push edx
add eax, 0xfffffff9
mov dword [ebp - 0xc], 1
push eax
push str.invalid_uri_authority:__.s
call fcn.004cd660
add esp, 0xc
jmp 0x51f8be
mov dl, byte [eax + esi]
xor edi, edi
test dl, dl
je 0x51f6b0
cmp dl, 0x23
je 0x51f5c6
inc eax
cmp dl, 0x25
jne 0x51f603
mov bl, byte [eax + esi]
movzx ecx, bl
test byte [ecx + 0x58b780], 8
je 0x51f600
movzx ecx, byte [eax + esi + 1]
test byte [ecx + 0x58b780], 8
je 0x51f600
mov ch, byte [eax + esi + 1]
mov dl, bl
sar dl, 6
add eax, 2
and dl, 1
mov cl, dl
shl cl, 3
sub cl, dl
sub bl, cl
mov cl, ch
sar cl, 6
and ebx, 0xf
and cl, 1
add ebx, ebx
mov dl, cl
shl dl, 3
sub dl, cl
mov cl, ch
sub cl, dl
and ecx, 0xf
lea edx, [ecx + ebx*8]
test edx, edx
jne 0x51f5f1
mov cl, byte [eax + esi]
test cl, cl
je 0x51f5b8
lea esp, [esp]
cmp cl, 0x23
je 0x51f5b8
test edi, edi
jne 0x51f5ae
cmp cl, 0x3f
jmp 0x51f5e4
cmp edi, 1
jne 0x51f5dc
cmp cl, 0x3d
jne 0x51f5e1
mov ebx, dword [ebp + 0xc]
mov dl, byte [eax + esi]
test dl, dl
jne 0x51f520
mov eax, dword [ebp - 8]
cmp edi, 1
jne 0x51f6b2
mov byte [ebx + eax], 0
inc eax
jmp 0x51f6b2
cmp edi, 2
jne 0x51f5e6
cmp cl, 0x26
je 0x51f5b8
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f5a0
jmp 0x51f5b8
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f5bb
mov ebx, dword [ebp + 0xc]
cmp edi, 1
jne 0x51f678
cmp dl, 0x26
je 0x51f616
cmp dl, 0x3d
jne 0x51f6a1
mov ecx, dword [ebp - 8]
cmp byte [ebx + ecx - 1], 0
jne 0x51f641
mov cl, byte [eax + esi]
test cl, cl
je 0x51f5bb
cmp cl, 0x23
je 0x51f5bb
cmp byte [eax + esi - 1], 0x26
je 0x51f5bb
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f627
jmp 0x51f5bb
cmp dl, 0x26
jne 0x51f662
mov edx, dword [ebp - 8]
mov byte [ebx + edx], 0
inc edx
mov dword [ebp - 8], edx
xor dl, dl
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f5bb
mov ecx, dword [ebp - 8]
xor dl, dl
mov edi, 2
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f5bb
test edi, edi
jne 0x51f690
cmp dl, 0x3f
je 0x51f69a
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f5bb
cmp edi, 2
jne 0x51f6a1
cmp dl, 0x26
jne 0x51f6a1
mov edi, 1
xor dl, dl
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f5bb
xor eax, eax
mov dword [ebx + eax], 0
test ebx, ebx
jne 0x51f6c1
xor ecx, ecx
jmp 0x51f6d5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f6c6
sub ecx, edx
and ecx, 0x3fffffff
lea edx, [ebx + 1]
add edx, ecx
cmp byte [edx], 0
je 0x51f892
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f6e8
sub ecx, esi
lea ebx, [edx + 1]
and ecx, 0x3fffffff
add ebx, ecx
mov dword [ebp - 8], ebx
jne 0x51f705
xor edi, edi
jmp 0x51f71f
mov edi, ebx
lea esi, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x51f710
sub edi, esi
and edi, 0x3fffffff
cmp ecx, 3
jne 0x51f740
mov eax, 0x6676
cmp ax, word [edx]
jne 0x51f740
mov eax, 0x73
cmp al, byte [edx + 2]
jne 0x51f740
mov dword [ebp + 8], ebx
jmp 0x51f881
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp ecx, 5
jne 0x51f782
mov ebx, 0x68636163
cmp ebx, dword [edx]
mov ebx, dword [ebp - 8]
jne 0x51f782
mov ebx, 0x65
cmp bl, byte [edx + 4]
mov ebx, dword [ebp - 8]
jne 0x51f782
mov eax, 0x60000
mov dword [ebp - 0x14], str.cache
mov esi, 0x5ad428
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
cmp ecx, 4
jne 0x51f7b2
cmp dword [edx], 0x65646f6d
jne 0x51f7b2
mov eax, dword [ebp - 4]
mov esi, 0x5ad440
and eax, 0x87
mov dword [ebp - 0x18], 0x87
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], str.access
jmp 0x51f7bd
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x51f881
mov esi, dword [esi]
xor ebx, ebx
test esi, esi
je 0x51f83e
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f7d0
sub ecx, edx
and ecx, 0x3fffffff
cmp edi, ecx
jne 0x51f833
mov ecx, dword [ebp - 8]
mov edx, edi
sub edx, 4
jb 0x51f801
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x51f806
add ecx, 4
add esi, 4
sub edx, 4
jae 0x51f7f0
cmp edx, 0xfffffffc
je 0x51f85a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x51f833
cmp edx, 0xfffffffd
je 0x51f85a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x51f833
cmp edx, 0xfffffffe
je 0x51f85a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x51f833
cmp edx, 0xffffffff
je 0x51f85a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x51f85a
mov eax, dword [ebp - 0x10]
inc ebx
mov esi, dword [eax + ebx*8]
test esi, esi
jne 0x51f7c5
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
push dword [ebp - 0x14]
push str.no_such__s_mode:__s
call fcn.004cd660
add esp, 0xc
jmp 0x51f8be
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ebx*8 + 4]
test ecx, ecx
je 0x51f83e
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x1c]
jg 0x51f8e7
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
not eax
and eax, dword [ebp - 4]
or eax, ecx
mov dword [ebp - 4], eax
lea edx, [ebx + 1]
add edx, edi
cmp byte [edx], 0
jne 0x51f6e3
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call fcn.004d4850
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x51f8d0
push esi
push str.no_such_vfs:__s
mov dword [ebp - 0xc], 1
call fcn.004cd660
add esp, 8
mov ecx, dword [ebp + 0x1c]
push dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.004ce5d0
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov dword [ebp - 0xc], 3
push dword [ebp - 0x14]
push str._s_mode_not_allowed:__s
call fcn.004cd660
add esp, 0xc
jmp 0x51f8be
call fcn.00544fc0
test eax, eax
jne 0x51f94b
lea eax, [edi + 8]
push 0
push eax
call fcn.0051c920
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51f94b
mov dword [ebx], 0
add ebx, 4
mov dword [ebp + 0xc], ebx
test edi, edi
je 0x51f93b
push edi
push esi
push ebx
call fcn.0048d7e0
add esp, 0xc
and dword [ebp - 4], 0xffffffbf
mov dword [ebx + edi], 0
jmp 0x51f892
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret