Function at 0x509ac0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x30], ecx
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
push edi
test esi, esi
jne 0x509aeb
xor edi, edi
jmp 0x509aff
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x509af0
sub edi, ecx
and edi, 0x3fffffff
test dl, 0x40
jne 0x509b11
cmp byte [0x59ebc6], 0
je 0x50a040
cmp edi, 5
jb 0x50a040
cmp dword [esi], 0x656c6966
jne 0x50a040
cmp byte [esi + 4], 0x3a
jne 0x50a040
xor eax, eax
mov dword [esp + 0x10], 0
or edx, 0x40
mov dword [esp + 0xc], eax
lea ebx, [edi + 8]
mov dword [esp + 0x14], edx
cmp byte [eax + esi], 0x26
jne 0x509b57
mov ecx, 1
xor edx, edx
jmp 0x509b68
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add ebx, ecx
adc dword [esp + 0xc], edx
inc eax
cmp eax, edi
jl 0x509b48
call fcn.00506bd0
test eax, eax
jne 0x50a08a
mov eax, dword [esp + 0xc]
push eax
push ebx
call fcn.0045f9d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50a08a
mov dword [ebx], 0
mov eax, 5
add ebx, 4
cmp byte [esi + 5], 0x2f
mov dword [esp + 0xc], ebx
jne 0x509c19
cmp byte [esi + 6], 0x2f
jne 0x509c19
mov cl, byte [esi + 7]
lea edx, [esi + 7]
mov eax, 7
test cl, cl
je 0x509c19
cmp cl, 0x2f
je 0x509bd3
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x509bc5
cmp eax, 7
je 0x509c19
cmp eax, 0x10
jne 0x509bfa
mov ecx, 0x61636f6c
cmp ecx, dword [edx]
jne 0x509bfa
mov ecx, 0x736f686c
cmp ecx, dword [edx + 4]
jne 0x509bfa
mov ecx, 0x74
cmp cl, byte [edx + 8]
je 0x509c19
push edx
add eax, 0xfffffff9
mov dword [esp + 0x1c], 1
push eax
push str.invalid_uri_authority:__.s
call fcn.004627d0
add esp, 0xc
jmp 0x509ff5
mov dl, byte [eax + esi]
xor edi, edi
test dl, dl
je 0x509dc3
cmp dl, 0x23
je 0x509cc7
inc eax
cmp dl, 0x25
jne 0x509d09
mov bl, byte [eax + esi]
movzx ecx, bl
test byte [ecx + 0x57a0f0], 8
je 0x509d05
movzx ecx, byte [eax + esi + 1]
test byte [ecx + 0x57a0f0], 8
je 0x509d05
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 0x509cf3
mov cl, byte [eax + esi]
test cl, cl
je 0x509cb8
nop
cmp cl, 0x23
je 0x509cb8
test edi, edi
jne 0x509cae
cmp cl, 0x3f
jmp 0x509ce6
cmp edi, 1
jne 0x509cde
cmp cl, 0x3d
jne 0x509ce3
mov ebx, dword [esp + 0xc]
mov dl, byte [eax + esi]
test dl, dl
jne 0x509c26
mov eax, dword [esp + 0x10]
cmp edi, 1
jne 0x509dc5
mov byte [ebx + eax], 0
inc eax
jmp 0x509dc5
cmp edi, 2
jne 0x509ce8
cmp cl, 0x26
je 0x509cb8
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x509ca0
jmp 0x509cb8
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov byte [ebx + ecx], dl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x509cbc
mov ebx, dword [esp + 0xc]
cmp edi, 1
jne 0x509d87
cmp dl, 0x26
je 0x509d1c
cmp dl, 0x3d
jne 0x509db2
mov ecx, dword [esp + 0x10]
cmp byte [ebx + ecx - 1], 0
jne 0x509d4a
mov cl, byte [eax + esi]
test cl, cl
je 0x509cbc
nop
cmp cl, 0x23
je 0x509cbc
cmp byte [eax + esi - 1], 0x26
je 0x509cbc
mov cl, byte [eax + esi + 1]
inc eax
test cl, cl
jne 0x509d30
jmp 0x509cbc
cmp dl, 0x26
jne 0x509d6f
mov edx, dword [esp + 0x10]
mov byte [ebx + edx], 0
inc edx
mov dword [esp + 0x10], edx
xor dl, dl
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], dl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x509cbc
mov ecx, dword [esp + 0x10]
xor dl, dl
mov edi, 2
mov byte [ebx + ecx], dl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x509cbc
test edi, edi
jne 0x509da1
cmp dl, 0x3f
je 0x509dab
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], dl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x509cbc
cmp edi, 2
jne 0x509db2
cmp dl, 0x26
jne 0x509db2
mov edi, 1
xor dl, dl
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], dl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x509cbc
xor eax, eax
mov dword [ebx + eax], 0
test ebx, ebx
jne 0x509dd4
xor ecx, ecx
jmp 0x509def
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509de0
sub ecx, edx
and ecx, 0x3fffffff
lea edx, [ecx + 1]
add edx, ebx
cmp byte [edx], 0
je 0x509fc7
mov ebx, 0x73
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509e07
sub ecx, esi
and ecx, 0x3fffffff
lea eax, [ecx + 1]
add eax, edx
mov dword [esp + 0x10], eax
jne 0x509e25
xor edi, edi
jmp 0x509e43
mov edi, eax
lea esi, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x509e30
mov eax, dword [esp + 0x10]
sub edi, esi
and edi, 0x3fffffff
cmp ecx, 3
jne 0x509e68
mov ecx, 0x6676
cmp cx, word [edx]
jne 0x509fb3
cmp bl, byte [edx + 2]
jne 0x509fb3
mov dword [esp + 0x34], eax
jmp 0x509fb3
cmp ecx, 5
jne 0x509ea8
mov eax, 0x68636163
cmp eax, dword [edx]
jne 0x509fb3
mov eax, 0x65
cmp al, byte [edx + 4]
jne 0x509fb3
mov eax, 0x60000
mov dword [esp + 0x20], str.cache
mov dword [esp + 0x28], eax
mov eax, 0x5a0590
mov dword [esp + 0x24], 0x60000
jmp 0x509ee0
cmp ecx, 4
jne 0x509fb3
cmp dword [edx], 0x65646f6d
jne 0x509fb3
mov ecx, dword [esp + 0x14]
mov eax, 0x5a0268
and ecx, 0x87
mov dword [esp + 0x28], 0x87
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], str.access
mov esi, dword [eax]
xor ebx, ebx
mov dword [esp + 0x1c], eax
test esi, esi
je 0x509f62
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x509ef5
sub ecx, edx
and ecx, 0x3fffffff
cmp edi, ecx
jne 0x509f56
mov ecx, dword [esp + 0x10]
mov edx, edi
sub edx, 4
jb 0x509f24
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x509f29
add ecx, 4
add esi, 4
sub edx, 4
jae 0x509f13
cmp edx, 0xfffffffc
je 0x509f81
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x509f56
cmp edx, 0xfffffffd
je 0x509f81
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x509f56
cmp edx, 0xfffffffe
je 0x509f81
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x509f56
cmp edx, 0xffffffff
je 0x509f81
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x509f81
mov eax, dword [esp + 0x1c]
inc ebx
mov esi, dword [eax + ebx*8]
test esi, esi
jne 0x509ef0
push dword [esp + 0x10]
mov dword [esp + 0x1c], 1
push dword [esp + 0x24]
push str.no_such__s_mode:__s
call fcn.004627d0
add esp, 0xc
jmp 0x509ff5
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebx*8 + 4]
test ecx, ecx
je 0x509f62
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [esp + 0x24]
jg 0x50a021
mov eax, dword [esp + 0x28]
mov ebx, 0x73
not eax
and eax, dword [esp + 0x14]
or eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
inc edx
add edx, edi
cmp byte [edx], 0
jne 0x509e02
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x34]
push esi
call fcn.0045f110
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
jne 0x50a008
push esi
push str.no_such_vfs:__s
mov dword [esp + 0x20], 1
call fcn.004627d0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push dword [esp + 0xc]
call fcn.0050b9a0
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [ecx], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
mov dword [esp + 0x1c], 3
push dword [esp + 0x24]
push str._s_mode_not_allowed:__s
call fcn.004627d0
add esp, 0xc
jmp 0x509ff5
call fcn.00506bd0
test eax, eax
jne 0x50a08a
lea eax, [edi + 8]
push 0
push eax
call fcn.0045f9d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50a08a
mov dword [ebx], 0
add ebx, 4
mov dword [esp + 0xc], ebx
test edi, edi
je 0x50a079
push edi
push esi
push ebx
call fcn.00533a40
add esp, 0xc
and dword [esp + 0x14], 0xffffffbf
mov dword [ebx + edi], 0
jmp 0x509fc7
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret