Function at 0x51f380
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 0x51f3a3
xor edi, edi
jmp 0x51f3ba
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x51f3a8
sub edi, ecx
mov ecx, dword [ebp - 4]
and edi, 0x3fffffff
test cl, 0x40
jne 0x51f3cc
cmp byte [0x5ac1ce], 0
je 0x51f8b3
cmp edi, 5
jb 0x51f8b3
cmp dword [esi], 0x656c6966
jne 0x51f8b3
cmp byte [esi + 4], 0x3a
jne 0x51f8b3
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 0x51f40d
mov ecx, 1
jmp 0x51f40f
xor ecx, ecx
add ebx, ecx
adc edx, 0
inc eax
cmp eax, edi
jl 0x51f400
mov dword [ebp + 0xc], edx
call fcn.00544f50
test eax, eax
jne 0x51f8fb
push dword [ebp + 0xc]
push ebx
call fcn.0051c8d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51f8fb
mov dword [ebx], 0
mov eax, 5
add ebx, 4
cmp byte [esi + 5], 0x2f
mov dword [ebp + 0xc], ebx
jne 0x51f4c3
cmp byte [esi + 6], 0x2f
jne 0x51f4c3
mov cl, byte [esi + 7]
lea edx, [esi + 7]
mov eax, 7
test cl, cl
je 0x51f4c3
jmp 0x51f470
cmp cl, 0x2f
je 0x51f47e
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f470
cmp eax, 7
je 0x51f4c3
cmp eax, 0x10
jne 0x51f4a5
mov ecx, 0x61636f6c
cmp ecx, dword [edx]
jne 0x51f4a5
mov ecx, 0x736f686c
cmp ecx, dword [edx + 4]
jne 0x51f4a5
mov ecx, 0x74
cmp cl, byte [edx + 8]
je 0x51f4c3
push edx
add eax, 0xfffffff9
mov dword [ebp - 0xc], 1
push eax
push str.invalid_uri_authority:__.s
call fcn.004cd600
add esp, 0xc
jmp 0x51f86e
mov dl, byte [eax + esi]
xor edi, edi
test dl, dl
je 0x51f660
cmp dl, 0x23
je 0x51f576
inc eax
cmp dl, 0x25
jne 0x51f5b3
mov bl, byte [eax + esi]
movzx ecx, bl
test byte [ecx + 0x58b610], 8
je 0x51f5b0
movzx ecx, byte [eax + esi + 1]
test byte [ecx + 0x58b610], 8
je 0x51f5b0
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 0x51f5a1
mov cl, byte [eax + esi]
test cl, cl
je 0x51f568
lea esp, [esp]
cmp cl, 0x23
je 0x51f568
test edi, edi
jne 0x51f55e
cmp cl, 0x3f
jmp 0x51f594
cmp edi, 1
jne 0x51f58c
cmp cl, 0x3d
jne 0x51f591
mov ebx, dword [ebp + 0xc]
mov dl, byte [eax + esi]
test dl, dl
jne 0x51f4d0
mov eax, dword [ebp - 8]
cmp edi, 1
jne 0x51f662
mov byte [ebx + eax], 0
inc eax
jmp 0x51f662
cmp edi, 2
jne 0x51f596
cmp cl, 0x26
je 0x51f568
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f550
jmp 0x51f568
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f56b
mov ebx, dword [ebp + 0xc]
cmp edi, 1
jne 0x51f628
cmp dl, 0x26
je 0x51f5c6
cmp dl, 0x3d
jne 0x51f651
mov ecx, dword [ebp - 8]
cmp byte [ebx + ecx - 1], 0
jne 0x51f5f1
mov cl, byte [eax + esi]
test cl, cl
je 0x51f56b
cmp cl, 0x23
je 0x51f56b
cmp byte [eax + esi - 1], 0x26
je 0x51f56b
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x51f5d7
jmp 0x51f56b
cmp dl, 0x26
jne 0x51f612
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 0x51f56b
mov ecx, dword [ebp - 8]
xor dl, dl
mov edi, 2
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f56b
test edi, edi
jne 0x51f640
cmp dl, 0x3f
je 0x51f64a
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f56b
cmp edi, 2
jne 0x51f651
cmp dl, 0x26
jne 0x51f651
mov edi, 1
xor dl, dl
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], dl
inc ecx
mov dword [ebp - 8], ecx
jmp 0x51f56b
xor eax, eax
mov dword [ebx + eax], 0
test ebx, ebx
jne 0x51f671
xor ecx, ecx
jmp 0x51f685
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f676
sub ecx, edx
and ecx, 0x3fffffff
lea edx, [ebx + 1]
add edx, ecx
cmp byte [edx], 0
je 0x51f842
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f698
sub ecx, esi
lea ebx, [edx + 1]
and ecx, 0x3fffffff
add ebx, ecx
mov dword [ebp - 8], ebx
jne 0x51f6b5
xor edi, edi
jmp 0x51f6cf
mov edi, ebx
lea esi, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x51f6c0
sub edi, esi
and edi, 0x3fffffff
cmp ecx, 3
jne 0x51f6f0
mov eax, 0x6676
cmp ax, word [edx]
jne 0x51f6f0
mov eax, 0x73
cmp al, byte [edx + 2]
jne 0x51f6f0
mov dword [ebp + 8], ebx
jmp 0x51f831
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 0x51f732
mov ebx, 0x68636163
cmp ebx, dword [edx]
mov ebx, dword [ebp - 8]
jne 0x51f732
mov ebx, 0x65
cmp bl, byte [edx + 4]
mov ebx, dword [ebp - 8]
jne 0x51f732
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 0x51f762
cmp dword [edx], 0x65646f6d
jne 0x51f762
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 0x51f76d
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x51f831
mov esi, dword [esi]
xor ebx, ebx
test esi, esi
je 0x51f7ee
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f780
sub ecx, edx
and ecx, 0x3fffffff
cmp edi, ecx
jne 0x51f7e3
mov ecx, dword [ebp - 8]
mov edx, edi
sub edx, 4
jb 0x51f7b1
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x51f7b6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x51f7a0
cmp edx, 0xfffffffc
je 0x51f80a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x51f7e3
cmp edx, 0xfffffffd
je 0x51f80a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x51f7e3
cmp edx, 0xfffffffe
je 0x51f80a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x51f7e3
cmp edx, 0xffffffff
je 0x51f80a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x51f80a
mov eax, dword [ebp - 0x10]
inc ebx
mov esi, dword [eax + ebx*8]
test esi, esi
jne 0x51f775
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
push dword [ebp - 0x14]
push str.no_such__s_mode:__s
call fcn.004cd600
add esp, 0xc
jmp 0x51f86e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ebx*8 + 4]
test ecx, ecx
je 0x51f7ee
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x1c]
jg 0x51f897
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 0x51f693
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call fcn.004d4800
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x51f880
push esi
push str.no_such_vfs:__s
mov dword [ebp - 0xc], 1
call fcn.004cd600
add esp, 8
mov ecx, dword [ebp + 0x1c]
push dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.004ce580
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.004cd600
add esp, 0xc
jmp 0x51f86e
call fcn.00544f50
test eax, eax
jne 0x51f8fb
lea eax, [edi + 8]
push 0
push eax
call fcn.0051c8d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51f8fb
mov dword [ebx], 0
add ebx, 4
mov dword [ebp + 0xc], ebx
test edi, edi
je 0x51f8eb
push edi
push esi
push ebx
call fcn.0048d780
add esp, 0xc
and dword [ebp - 4], 0xffffffbf
mov dword [ebx + edi], 0
jmp 0x51f842
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret