Function at 0x51f6d0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], edx
cmp edi, ebx
jne 0x51f6f9
xor esi, esi
jmp 0x51f710
mov eax, edi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51f700
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
test cl, 0x40
jne 0x51f721
cmp dword [0x5eb9ec], ebx
je 0x51fbf9
cmp esi, 5
jl 0x51fbf9
cmp dword [edi], 0x656c6966
jne 0x51fbf9
cmp byte [edi + 4], 0x3a
jne 0x51fbf9
lea eax, [esi + 2]
cdq
mov dword [esp + 0x10], ebx
mov ebx, eax
or ecx, 0x40
xor eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
test esi, esi
jle 0x51f777
cmp byte [eax + edi], 0x26
jne 0x51f768
mov ecx, 1
jmp 0x51f76a
xor ecx, ecx
xor edx, edx
add ebx, ecx
adc dword [esp + 0x34], edx
inc eax
cmp eax, esi
jl 0x51f75b
call fcn.0051d170
test eax, eax
jne 0x51f7aa
mov eax, dword [esp + 0x34]
mov ecx, ebx
or ecx, eax
je 0x51f79c
push eax
push ebx
call fcn.004af6f0
add esp, 8
mov ebx, eax
mov dword [esp + 0x18], eax
jmp 0x51f7a2
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x51f7b6
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, 0x2f
mov esi, 5
cmp byte [edi + 5], dl
jne 0x51f83e
cmp byte [edi + 6], dl
jne 0x51f83e
mov al, byte [edi + 7]
lea ecx, [edi + 7]
mov esi, 7
mov dword [esp + 0x30], ecx
test al, al
je 0x51f83e
lea ebx, [ebx]
cmp al, dl
je 0x51f7ed
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x51f7e0
cmp esi, 7
je 0x51f83e
cmp esi, 0x10
jne 0x51f81e
lea eax, [esi - 7]
mov edx, str.localhost
nop
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x51f81a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x51f800
mov al, byte [ecx]
cmp al, byte [edx]
je 0x51f83a
mov ecx, dword [esp + 0x30]
push ecx
add esi, 0xfffffff9
push esi
push str.invalid_uri_authority:__.s
call fcn.004b1920
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
jmp 0x51fc80
mov ebx, dword [esp + 0x18]
mov al, byte [esi + edi]
xor edx, edx
mov dword [esp + 0x1c], edx
test al, al
je 0x51f9ad
nop
cmp al, 0x23
je 0x51f99b
inc esi
cmp al, 0x25
jne 0x51f90c
mov cl, byte [esi + edi]
movzx ebx, cl
test byte [ebx + 0x59ced8], 8
je 0x51f908
movzx ebx, byte [esi + edi + 1]
test byte [ebx + 0x59ced8], 8
je 0x51f908
movsx edx, byte [esi + edi + 1]
movsx ecx, cl
mov eax, ecx
sar eax, 6
and al, 1
mov bl, 7
imul bl
inc esi
sub cl, al
mov eax, edx
sar eax, 6
and al, 1
imul bl
sub dl, al
and ecx, 0xf
shl ecx, 4
inc esi
and edx, 0xf
add ecx, edx
test ecx, ecx
jne 0x51f900
mov al, byte [esi + edi]
test al, al
je 0x51f988
mov ecx, dword [esp + 0x1c]
cmp al, 0x23
je 0x51f988
test ecx, ecx
jne 0x51f8d6
cmp al, 0x3f
jmp 0x51f8ec
cmp ecx, 1
jne 0x51f8e5
cmp al, 0x3d
je 0x51f988
jmp 0x51f8ea
cmp ecx, 2
jne 0x51f8f2
cmp al, 0x26
je 0x51f988
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x51f8c6
jmp 0x51f988
mov ebx, dword [esp + 0x18]
mov al, cl
jmp 0x51f97c
mov ebx, dword [esp + 0x18]
cmp edx, 1
jne 0x51f95f
cmp al, 0x26
je 0x51f919
cmp al, 0x3d
jne 0x51f97c
mov ecx, dword [esp + 0x10]
cmp byte [ebx + ecx - 1], 0
jne 0x51f946
mov al, byte [esi + edi]
test al, al
je 0x51f988
jmp 0x51f930
cmp al, 0x23
je 0x51f988
cmp byte [esi + edi - 1], 0x26
je 0x51f988
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x51f930
jmp 0x51f988
cmp al, 0x26
jne 0x51f955
mov byte [ebx + ecx], 0
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x51f97a
mov dword [esp + 0x1c], 2
jmp 0x51f97a
test edx, edx
jne 0x51f969
cmp al, 0x3f
je 0x51f972
jmp 0x51f97c
cmp edx, 2
jne 0x51f97c
cmp al, 0x26
jne 0x51f97c
mov dword [esp + 0x1c], 1
xor al, al
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], al
inc ecx
mov dword [esp + 0x10], ecx
mov al, byte [esi + edi]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test al, al
jne 0x51f850
cmp edx, 1
jne 0x51f9ad
mov eax, dword [esp + 0x10]
mov byte [ebx + eax], 0
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov byte [ebx + eax], 0
mov byte [ebx + eax + 1], 0
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51f9c0
sub eax, edx
and eax, 0x3fffffff
cmp byte [eax + ebx + 1], 0
lea ecx, [eax + ebx + 1]
je 0x51fc53
lea ecx, [ecx]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51f9e5
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
lea eax, [esi + ecx + 1]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x51fa05
xor ebx, ebx
jmp 0x51fa24
mov eax, dword [esp + 0x10]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51fa10
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp esi, 3
jne 0x51fa53
cmp byte [ecx], 0x76
jne 0x51fbbc
cmp byte [ecx + 1], 0x66
jne 0x51fbbc
cmp byte [ecx + 2], 0x73
jne 0x51fbbc
mov dword [esp + 0x3c], eax
jmp 0x51fbbc
cmp esi, 5
jne 0x51fa86
cmp dword [ecx], 0x68636163
jne 0x51fbbc
cmp byte [ecx + 4], 0x65
jne 0x51fbbc
mov eax, 0x60000
mov dword [esp + 0x30], eax
mov edi, 0x5ec850
mov dword [esp + 0x28], str.cache
jmp 0x51fab9
cmp esi, 4
jne 0x51fbbc
cmp dword [ecx], 0x65646f6d
jne 0x51fbbc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0x87
mov edi, 0x5ec868
and eax, 0x87
mov dword [esp + 0x28], str.access
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x51fb69
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51fad4
sub eax, esi
and eax, 0x3fffffff
cmp ebx, eax
jne 0x51fb54
mov edx, dword [esp + 0x10]
mov esi, ebx
cmp ebx, 4
jb 0x51fb05
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x51fb0d
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x51faf1
test esi, esi
je 0x51fb8e
movzx ebx, byte [ecx]
movzx eax, byte [edx]
sub eax, ebx
jne 0x51fb48
cmp esi, 1
jbe 0x51fb8a
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x51fb48
cmp esi, 2
jbe 0x51fb8a
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x51fb48
cmp esi, 3
jbe 0x51fb8a
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov ebx, dword [esp + 0x18]
sar eax, 0x1f
or eax, 1
je 0x51fb8e
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + eax*8 + 8]
inc eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x51facf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push eax
push str.no_such__s_mode:__s
call fcn.004b1920
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
jmp 0x51fc80
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + edx*8 + 4]
test eax, eax
je 0x51fb69
mov ecx, eax
and ecx, 0xffffff7f
cmp ecx, dword [esp + 0x2c]
jg 0x51fbd0
mov ecx, dword [esp + 0x30]
not ecx
and ecx, dword [esp + 0x14]
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
cmp byte [ebx + eax + 1], 0
lea ecx, [ebx + eax + 1]
jne 0x51f9e0
jmp 0x51fc53
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push eax
push str._s_mode_not_allowed:__s
call fcn.004b1920
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
mov dword [esp + 0x24], 3
jmp 0x51fc88
lea eax, [esi + 2]
cdq
mov ebx, eax
mov dword [esp + 0x34], edx
call fcn.0051d170
test eax, eax
jne 0x51f7aa
mov eax, dword [esp + 0x34]
mov edx, ebx
or edx, eax
je 0x51fc28
push eax
push ebx
call fcn.004af6f0
add esp, 8
mov ebx, eax
jmp 0x51fc2a
xor ebx, ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x51f7aa
test esi, esi
je 0x51fc45
push esi
push edi
push ebx
call fcn.00530500
add esp, 0xc
and dword [esp + 0x14], 0xffffffbf
mov byte [ebx + esi], 0
mov byte [ebx + esi + 1], 0
mov esi, dword [esp + 0x3c]
push esi
call fcn.004aed70
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x51fcf0
push esi
push str.no_such_vfs:__s
call fcn.004b1920
mov edx, dword [ebp + 0x14]
add esp, 8
mov dword [edx], eax
mov dword [esp + 0x24], 1
cmp dword [0x5eb9e0], 0
je 0x51fcda
mov eax, dword [0x5f0898]
test eax, eax
je 0x51fca4
push eax
call dword [0x5eba38]
add esp, 4
mov esi, dword [esp + 0x20]
push esi
call dword [0x5eba14]
sub dword [0x5f06e8], eax
dec dword [0x5f070c]
add esp, 4
push esi
call dword [0x5eba0c]
mov eax, dword [0x5f0898]
add esp, 4
test eax, eax
je 0x51fce8
push eax
call dword [0x5eba40]
jmp 0x51fce5
mov eax, dword [esp + 0x20]
push eax
call dword [0x5eba0c]
add esp, 4
mov dword [esp + 0x20], 0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ecx], edx
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
pop ebx
mov esp, ebp
pop ebp
ret